[PATCH net-next v2] net: ti: icssg: Remove dedicated workqueue for ndo_set_rx_mode callback

MD Danish Anwar danishanwar at ti.com
Thu Feb 5 00:34:16 PST 2026



On 05/02/26 11:55 am, Kevin Hao wrote:
> Currently, both the icssg-prueth and icssg-prueth-sr1 drivers create
> a dedicated 'emac->cmd_wq' workqueue.
> 
> In the icssg-prueth-sr1 driver, this workqueue is not utilized at all.
> 
> In the icssg-prueth driver, the workqueue is only used to execute the
> actual processing of ndo_set_rx_mode. However, creating a dedicated
> workqueue for such a simple use case is unnecessary. To simplify the
> code, switch to using the system default workqueue instead.
> 
> Signed-off-by: Kevin Hao <haokexin at gmail.com>
> ---
> While addressing an issue in the cpsw driver, I based my fix [1] on the
> implementation of the emac_ndo_set_rx_mode() function in icssg. During review,
> Jakub pointed out that the dedicated workqueue for the ndo_set_rx_mode
> callback might be unnecessary [2]. I subsequently used the system workqueue for
> this purpose in the cpsw driver, and it performed as expected. Therefore,
> I believe the same approach can be applied to the icssg driver. This
> patch aim to remove this dedicated workqueue for icssg drivers.
> 
> Please note: I do not have access to a board that supports the CSSG PRU
> Ethernet controller, so this change has only been build-tested.
> 
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=c0b5dc73a38f954e780f93a549b8fe225235c07a
> [2] https://lore.kernel.org/all/20260127190836.6a420768@kernel.org/
> ---
> Cc: MD Danish Anwar <danishanwar at ti.com>
> Cc: Roger Quadros <rogerq at kernel.org>
> Cc: Andrew Lunn <andrew+netdev at lunn.ch>
> Cc: "David S. Miller" <davem at davemloft.net>
> Cc: Eric Dumazet <edumazet at google.com>
> Cc: Jakub Kicinski <kuba at kernel.org>
> Cc: Paolo Abeni <pabeni at redhat.com>
> Cc: Meghana Malladi <m-malladi at ti.com>
> Cc: Jacob Keller <jacob.e.keller at intel.com>
> Cc: Vadim Fedorenko <vadim.fedorenko at linux.dev>
> Cc: Himanshu Mittal <h-mittal1 at ti.com>
> Cc: Simon Horman <horms at kernel.org>
> Cc: Byungchul Park <byungchul at sk.com>
> Cc: Markus Elfring <elfring at users.sourceforge.net>
> Cc: linux-arm-kernel at lists.infradead.org
> ---

Meghana, Can you please test this patch on AM64x and verify icssg_prueth
driver functionalities.

-- 
Thanks and Regards,
Danish




More information about the linux-arm-kernel mailing list