All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] dpll: zl3073x: Add support for devlink flash
@ 2025-07-25 15:41 Ivan Vecera
  2025-07-25 15:41 ` [PATCH net-next 1/5] dpll: zl3073x: Add functions to access hardware registers Ivan Vecera
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Ivan Vecera @ 2025-07-25 15:41 UTC (permalink / raw)
  To: netdev
  Cc: Jiri Pirko, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, Jonathan Corbet, Prathosh Satish,
	linux-doc, linux-kernel, Michal Schmidt, Petr Oros

Add functionality for accessing device hardware registers, loading
firmware bundles, and accessing the device's internal flash memory,
and use it to implement the devlink flash functionality.

Patch breakdown:
Patch1: helpers to access hardware registers
Patch2: low level functions to access flash memory
Patch3: support to load firmware bundles
Patch4: refactoring device initialization and helper functions
        for stopping and resuming device normal operation
Patch5: devlink .flash_update callback implementation

Ivan Vecera (5):
  dpll: zl3073x: Add functions to access hardware registers
  dpll: zl3073x: Add low-level flash functions
  dpll: zl3073x: Add firmware loading functionality
  dpll: zl3073x: Refactor DPLL initialization
  dpll: zl3073x: Implement devlink flash callback

 Documentation/networking/devlink/zl3073x.rst |  14 +
 drivers/dpll/zl3073x/Makefile                |   2 +-
 drivers/dpll/zl3073x/core.c                  | 362 +++++++---
 drivers/dpll/zl3073x/core.h                  |  32 +
 drivers/dpll/zl3073x/devlink.c               |  92 ++-
 drivers/dpll/zl3073x/devlink.h               |   3 +
 drivers/dpll/zl3073x/flash.c                 | 674 +++++++++++++++++++
 drivers/dpll/zl3073x/flash.h                 |  29 +
 drivers/dpll/zl3073x/fw.c                    | 495 ++++++++++++++
 drivers/dpll/zl3073x/fw.h                    |  52 ++
 drivers/dpll/zl3073x/regs.h                  |  51 ++
 11 files changed, 1715 insertions(+), 91 deletions(-)
 create mode 100644 drivers/dpll/zl3073x/flash.c
 create mode 100644 drivers/dpll/zl3073x/flash.h
 create mode 100644 drivers/dpll/zl3073x/fw.c
 create mode 100644 drivers/dpll/zl3073x/fw.h

-- 
2.49.1


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [PATCH net-next 3/5] dpll: zl3073x: Add firmware loading functionality
@ 2025-07-28 14:58 kernel test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kernel test robot @ 2025-07-28 14:58 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20250725154136.1008132-4-ivecera@redhat.com>
References: <20250725154136.1008132-4-ivecera@redhat.com>
TO: Ivan Vecera <ivecera@redhat.com>
TO: netdev@vger.kernel.org
CC: Jiri Pirko <jiri@resnulli.us>
CC: Eric Dumazet <edumazet@google.com>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Paolo Abeni <pabeni@redhat.com>
CC: Simon Horman <horms@kernel.org>
CC: Jonathan Corbet <corbet@lwn.net>
CC: Prathosh Satish <Prathosh.Satish@microchip.com>
CC: linux-doc@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: Michal Schmidt <mschmidt@redhat.com>
CC: Petr Oros <poros@redhat.com>

Hi Ivan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Ivan-Vecera/dpll-zl3073x-Add-functions-to-access-hardware-registers/20250725-234600
base:   net-next/main
patch link:    https://lore.kernel.org/r/20250725154136.1008132-4-ivecera%40redhat.com
patch subject: [PATCH net-next 3/5] dpll: zl3073x: Add firmware loading functionality
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: nios2-randconfig-r072-20250728 (https://download.01.org/0day-ci/archive/20250728/202507282200.NdMNR61W-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 8.5.0

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202507282200.NdMNR61W-lkp@intel.com/

smatch warnings:
drivers/dpll/zl3073x/fw.c:494 zl3073x_fw_flash() error: uninitialized symbol 'rc'.

vim +/rc +494 drivers/dpll/zl3073x/fw.c

1be19dc363ff8f7 Ivan Vecera 2025-07-25  478  
1be19dc363ff8f7 Ivan Vecera 2025-07-25  479  int zl3073x_fw_flash(struct zl3073x_dev *zldev, struct zl3073x_fw *zlfw,
1be19dc363ff8f7 Ivan Vecera 2025-07-25  480  		     struct netlink_ext_ack *extack)
1be19dc363ff8f7 Ivan Vecera 2025-07-25  481  {
1be19dc363ff8f7 Ivan Vecera 2025-07-25  482  	int i, rc;
1be19dc363ff8f7 Ivan Vecera 2025-07-25  483  
1be19dc363ff8f7 Ivan Vecera 2025-07-25  484  	for (i = 0; i < ZL_FW_NUM_COMPONENTS; i++) {
1be19dc363ff8f7 Ivan Vecera 2025-07-25  485  		if (!zlfw->component[i])
1be19dc363ff8f7 Ivan Vecera 2025-07-25  486  			continue; /* Component is not present */
1be19dc363ff8f7 Ivan Vecera 2025-07-25  487  
1be19dc363ff8f7 Ivan Vecera 2025-07-25  488  		rc = zl3073x_fw_component_flash(zldev, zlfw->component[i],
1be19dc363ff8f7 Ivan Vecera 2025-07-25  489  						extack);
1be19dc363ff8f7 Ivan Vecera 2025-07-25  490  		if (rc)
1be19dc363ff8f7 Ivan Vecera 2025-07-25  491  			break;
1be19dc363ff8f7 Ivan Vecera 2025-07-25  492  	}
1be19dc363ff8f7 Ivan Vecera 2025-07-25  493  
1be19dc363ff8f7 Ivan Vecera 2025-07-25 @494  	return rc;

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-07-29 15:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-25 15:41 [PATCH net-next 0/5] dpll: zl3073x: Add support for devlink flash Ivan Vecera
2025-07-25 15:41 ` [PATCH net-next 1/5] dpll: zl3073x: Add functions to access hardware registers Ivan Vecera
2025-07-25 15:41 ` [PATCH net-next 2/5] dpll: zl3073x: Add low-level flash functions Ivan Vecera
2025-07-26 10:36   ` kernel test robot
2025-07-25 15:41 ` [PATCH net-next 3/5] dpll: zl3073x: Add firmware loading functionality Ivan Vecera
2025-07-26 20:33   ` Simon Horman
2025-07-29 15:20     ` Ivan Vecera
2025-07-25 15:41 ` [PATCH net-next 4/5] dpll: zl3073x: Refactor DPLL initialization Ivan Vecera
2025-07-26 10:57   ` kernel test robot
2025-07-25 15:41 ` [PATCH net-next 5/5] dpll: zl3073x: Implement devlink flash callback Ivan Vecera
2025-07-25 17:18 ` [PATCH net-next 0/5] dpll: zl3073x: Add support for devlink flash Ivan Vecera
2025-07-25 17:42   ` Jakub Kicinski
2025-07-25 17:59     ` Ivan Vecera
  -- strict thread matches above, loose matches on Subject: below --
2025-07-28 14:58 [PATCH net-next 3/5] dpll: zl3073x: Add firmware loading functionality kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.