From b8aa16541d73994dc18c5e8789124f26189ed656 Mon Sep 17 00:00:00 2001 From: M Chetan Kumar Date: Sat, 2 Oct 2021 20:02:12 +0530 Subject: net: wwan: iosm: correct devlink extra params 1. Removed driver specific extra params like download_region, address & region_count. The required information is passed as part of flash API. 2. IOSM Devlink documentation updated to reflect the same. Signed-off-by: M Chetan Kumar Signed-off-by: David S. Miller --- Documentation/networking/devlink/iosm.rst | 32 ++++++------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) (limited to 'Documentation/networking') diff --git a/Documentation/networking/devlink/iosm.rst b/Documentation/networking/devlink/iosm.rst index dd460c1c15cd..6136181339aa 100644 --- a/Documentation/networking/devlink/iosm.rst +++ b/Documentation/networking/devlink/iosm.rst @@ -26,23 +26,6 @@ The ``iosm`` driver implements the following driver-specific parameters. the device during firmware flashing. If set, Full nand erase command will be sent to the device. By default, only conditional erase support is enabled. - * - ``download_region`` - - u8 - - runtime - - download_region parameter is used to identify if we are flashing the - loadmap/region file during the firmware flashing. - * - ``address`` - - u32 - - runtime - - address parameter is used to send the address information of the - loadmap/region file which is required during the firmware flashing - process. Each region file has be flashed to its respective flash address. - * - ``region_count`` - - u8 - - runtime - - region_count parameter is used to inform the driver on how many total - loadmap/region files are present in modem firmware image that has to be - flashed. Flash Update @@ -87,7 +70,7 @@ Flash Commands: 1) When modem is in Boot ROM stage, user can use below command to inject PSI RAM image using devlink flash command. -$ devlink dev flash pci/0000:02:00.0 file component PSI +$ devlink dev flash pci/0000:02:00.0 file 2) If user want to do a full erase, below command need to be issued to set the erase full flash param (To be set only if full erase required). @@ -95,22 +78,19 @@ erase full flash param (To be set only if full erase required). $ devlink dev param set pci/0000:02:00.0 name erase_full_flash value true cmode runtime 3) Inject EBL after the modem is in PSI stage. -$ devlink dev flash pci/0000:02:00.0 file component EBL + +$ devlink dev flash pci/0000:02:00.0 file 4) Once EBL is injected successfully, then the actual firmware flashing takes place. Below is the sequence of commands used for each of the firmware images. a) Flash secure bin file. -$ devlink dev flash pci/0000:02:00.0 file component FLS - -b) Flashing the Loadmap/Region file -$ devlink dev param set pci/0000:02:00.0 name region_count value 1 cmode runtime -$ devlink dev param set pci/0000:02:00.0 name download_region value true cmode runtime +$ devlink dev flash pci/0000:02:00.0 file -$ devlink dev param set pci/0000:02:00.0 name address value cmode runtime +b) Flashing the Loadmap/Region file -$ devlink dev flash pci/0000:02:00.0 file component FLS +$ devlink dev flash pci/0000:02:00.0 file Regions ======= -- cgit v1.2.3