Skip to content

Commit 799a922

Browse files
Jinjie Ruankuba-moo
authored andcommitted
net: enetc: Use IRQF_NO_AUTOEN flag in request_irq()
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable when request IRQ. Fixes: bbb96dc ("enetc: Factor out the traffic start/stop procedures") Signed-off-by: Jinjie Ruan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e08ec05 commit 799a922

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/ethernet/freescale/enetc

1 file changed

+1
-2
lines changed

drivers/net/ethernet/freescale/enetc/enetc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,12 +2305,11 @@ static int enetc_setup_irqs(struct enetc_ndev_priv *priv)
23052305

23062306
snprintf(v->name, sizeof(v->name), "%s-rxtx%d",
23072307
priv->ndev->name, i);
2308-
err = request_irq(irq, enetc_msix, 0, v->name, v);
2308+
err = request_irq(irq, enetc_msix, IRQF_NO_AUTOEN, v->name, v);
23092309
if (err) {
23102310
dev_err(priv->dev, "request_irq() failed!\n");
23112311
goto irq_err;
23122312
}
2313-
disable_irq(irq);
23142313

23152314
v->tbier_base = hw->reg + ENETC_BDR(TX, 0, ENETC_TBIER);
23162315
v->rbier = hw->reg + ENETC_BDR(RX, i, ENETC_RBIER);

0 commit comments

Comments
 (0)