linux/drivers/net/ethernet/freescale/dpaa2
Ioana Ciornei 77c42a3b0a dpaa2-switch: add ENDPOINT_CHANGED to the irq_mask
Commit 84cba72956 ("dpaa2-switch: integrate the MAC endpoint support")
added support for MAC endpoints in the dpaa2-switch driver but omitted
to add the ENDPOINT_CHANGED irq to the list of interrupt sources. Fix
this by extending the list of events which can raise an interrupt by
extending the mask passed to the dpsw_set_irq_mask() firmware API.

There is no user visible impact even without this patch since whenever a
switch interface is connected/disconnected from an endpoint both events
are set (LINK_CHANGED and ENDPOINT_CHANGED) and, luckily, the
LINK_CHANGED event could actually raise the interrupt and thus get the
MAC/PHY SW configuration started.

Even with this, it's better to just not rely on undocumented firmware
behavior which can change.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-12-23 01:18:59 +00:00
..
dpaa2-eth-dcb.c
dpaa2-eth-debugfs.c
dpaa2-eth-debugfs.h
dpaa2-eth-devlink.c
dpaa2-eth-trace.h
dpaa2-eth.c
dpaa2-eth.h
dpaa2-ethtool.c
dpaa2-mac.c
dpaa2-mac.h
dpaa2-ptp.c
dpaa2-ptp.h
dpaa2-switch-ethtool.c
dpaa2-switch-flower.c dpaa2-switch: fix size of the dma_unmap 2023-12-13 18:38:53 -08:00
dpaa2-switch.c dpaa2-switch: add ENDPOINT_CHANGED to the irq_mask 2023-12-23 01:18:59 +00:00
dpaa2-switch.h
dpaa2-xsk.c
dpkg.h
dpmac-cmd.h
dpmac.c
dpmac.h
dpni-cmd.h
dpni.c
dpni.h
dprtc-cmd.h
dprtc.c
dprtc.h
dpsw-cmd.h
dpsw.c
dpsw.h
Kconfig
Makefile