Skip to contentSkip to conversation

net: wwan: iosm: correct devlink extra params

PATCH Applied M Chetan Kumar 2 participants 2 messages Oct 2, 2021

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 Documentation/networking/devlink/iosm.rst | 32 ++-------
 drivers/net/wwan/iosm/iosm_ipc_devlink.c  | 81 +++++------------------
 drivers/net/wwan/iosm/iosm_ipc_devlink.h  | 44 ++++++++----
 drivers/net/wwan/iosm/iosm_ipc_flash.c    | 42 +++++++-----
 4 files changed, 75 insertions(+), 124 deletions(-)
Documentation/networking/devlink/iosm.rst +6 -26
index dd460c1c15cd..6136181339aa 100644
@@ -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 <PSI_RAM_File_name> component PSI
+$ devlink dev flash pci/0000:02:00.0 file <PSI_RAM_File_name>
 
 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 <EBL_File_name> component EBL
+
+$ devlink dev flash pci/0000:02:00.0 file <EBL_File_name>
 
 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 <Secure_bin_file_name> 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 <Secure_bin_file_name>
 
-$ devlink dev param set pci/0000:02:00.0 name address value <Nand_address> cmode runtime
+b) Flashing the Loadmap/Region file
 
-$ devlink dev flash pci/0000:02:00.0 file <Load_map_file_name> component FLS
+$ devlink dev flash pci/0000:02:00.0 file <Load_map_file_name>
 
 Regions
 =======
drivers/net/wwan/iosm/iosm_ipc_devlink.c +15 -66

139 lines not on this page · raw message

drivers/net/wwan/iosm/iosm_ipc_devlink.h +30 -14

77 lines not on this page · raw message

drivers/net/wwan/iosm/iosm_ipc_flash.c +24 -18

110 lines not on this page · raw message

Signature · 1 line
2.25.1
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 8 lines · On Sat, 2 Oct 2021 20:02:12 +0530 you wrote:

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.

[...]

Here is the summary with links:
- [net-next] net: wwan: iosm: correct devlink extra params

    https://git.kernel.org/netdev/net-next/c/b8aa16541d73

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html