diff mbox series

[4/8] dpaa2-switch: add ENDPOINT_CHANGED to the irq_mask

Message ID 20231204163528.1797565-5-ioana.ciornei@nxp.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series dpaa2-switch: small improvements | expand

Checks

Context Check Description
netdev/series_format warning Target tree name not specified in the subject
netdev/tree_selection success Guessed tree name to be net-next
netdev/ynl success Generated files up to date; no warnings/errors;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1115 this patch: 1115
netdev/cc_maintainers success CCed 5 of 5 maintainers
netdev/build_clang success Errors and warnings before: 1142 this patch: 1142
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 1142 this patch: 1142
netdev/checkpatch warning WARNING: line length of 81 exceeds 80 columns
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Ioana Ciornei Dec. 4, 2023, 4:35 p.m. UTC
Add the ENDPOINT_CHANGED irq to the irq_mask since it was omitted in the
blamed commit.

Fixes: 84cba72956fd ("dpaa2-switch: integrate the MAC endpoint support")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
 drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jakub Kicinski Dec. 6, 2023, 3:58 a.m. UTC | #1
On Mon,  4 Dec 2023 18:35:24 +0200 Ioana Ciornei wrote:
> Add the ENDPOINT_CHANGED irq to the irq_mask since it was omitted in the
> blamed commit.

Any user-visible impact? What's the observable problem?
Ioana Ciornei Dec. 12, 2023, 12:13 p.m. UTC | #2
On Tue, Dec 05, 2023 at 07:58:19PM -0800, Jakub Kicinski wrote:
> On Mon,  4 Dec 2023 18:35:24 +0200 Ioana Ciornei wrote:
> > Add the ENDPOINT_CHANGED irq to the irq_mask since it was omitted in the
> > blamed commit.
> 
> Any user-visible impact? What's the observable problem?

No user-visible impact but that is only because the firmware sets both
events anytime a switch interface is connected to a MAC. We shouldn't
rely on this behavior since it's not documented. And this is why I
didn't catch the problem when I initially sent the patch.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
index 654dd10df307..e91ade7c7c93 100644
--- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
+++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
@@ -1550,9 +1550,9 @@  static irqreturn_t dpaa2_switch_irq0_handler_thread(int irq_num, void *arg)
 
 static int dpaa2_switch_setup_irqs(struct fsl_mc_device *sw_dev)
 {
+	u32 mask = DPSW_IRQ_EVENT_LINK_CHANGED | DPSW_IRQ_EVENT_ENDPOINT_CHANGED;
 	struct device *dev = &sw_dev->dev;
 	struct ethsw_core *ethsw = dev_get_drvdata(dev);
-	u32 mask = DPSW_IRQ_EVENT_LINK_CHANGED;
 	struct fsl_mc_device_irq *irq;
 	int err;