]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: octeon: replace pr_warn with dev_warn in fill and rx paths
authorAyush Mukkanwar <ayushmukkanwar@gmail.com>
Mon, 11 May 2026 15:09:31 +0000 (20:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 May 2026 09:20:45 +0000 (11:20 +0200)
commit2191a8dfd1f5a3091e9f388899beb137686c6532
tree4cdd43e421f068e95ec5a6b335c00861d0e362be
parent91442512943b50329f8f20ffc5db28e53782aff7
staging: octeon: replace pr_warn with dev_warn in fill and rx paths

Add struct platform_device parameter to cvm_oct_fill_hw_memory,
cvm_oct_mem_fill_fpa, cvm_oct_rx_refill_pool and
cvm_oct_rx_initialize to support device-aware logging. Replace
pr_warn with dev_warn using &pdev->dev.
To avoid passing these parameters through global state, introduce
struct octeon_ethernet_platform to hold per-device state including
the rx_refill_work and the oct_rx_group array. This ensures all
receive group state and workers are correctly associated with the
platform device.
Define struct oct_rx_group and struct octeon_ethernet_platform in
octeon-ethernet.h so they are shared across compilation units.

Signed-off-by: Ayush Mukkanwar <ayushmukkanwar@gmail.com>
Link: https://patch.msgid.link/20260511150931.93382-4-ayushmukkanwar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-mem.c
drivers/staging/octeon/ethernet-mem.h
drivers/staging/octeon/ethernet-rx.c
drivers/staging/octeon/ethernet-rx.h
drivers/staging/octeon/ethernet.c
drivers/staging/octeon/octeon-ethernet.h