Commit 165e88ee authored by Bartlomiej Grzeskowiak's avatar Bartlomiej Grzeskowiak Committed by Sukru Senli

Bug2653 Add IRQF_COND_SUSPEND flag to mtk_eth_soc request_irq(gsw->irq...).

This flag fixes kernel boot crash on EX400 when net_init is not called in u-boot. gsw is GIC_SHARED interrupt.
parent b63b8df1
diff --git a/drivers/net/ethernet/mediatek/gsw_mt7621.c b/drivers/net/ethernet/mediatek/gsw_mt7621.c
index 89be239..55a7a37 100644
--- a/drivers/net/ethernet/mediatek/gsw_mt7621.c
+++ b/drivers/net/ethernet/mediatek/gsw_mt7621.c
@@ -222,7 +222,7 @@ int mtk_gsw_init(struct fe_priv *priv)
priv->soc->swpriv = gsw;
if (gsw->irq) {
- request_irq(gsw->irq, gsw_interrupt_mt7621, 0,
+ request_irq(gsw->irq, gsw_interrupt_mt7621, IRQF_COND_SUSPEND,
"gsw", priv);
disable_irq(gsw->irq);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment