]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ethernet: mtk-star-emac: modify IRQ trigger flags
authorBiao Huang <biao.huang@mediatek.com>
Wed, 29 Jun 2022 03:17:35 +0000 (11:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2022 12:45:30 +0000 (13:45 +0100)
If the flags in request_irq() is IRQF_TRIGGER_NONE, the trigger method
is determined by "interrupt" property in dts.
So, modify the flag from IRQF_TRIGGER_FALLING to IRQF_TRIGGER_NONE.

Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Signed-off-by: Yinghua Pan <ot_yinghua.pan@mediatek.com>
Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_star_emac.c

index 9c54043f7866f4de788489ff668e2ed9aadb3723..f161a55bd09ab9280e8cdff74eb20150e727b75d 100644 (file)
@@ -958,7 +958,7 @@ static int mtk_star_enable(struct net_device *ndev)
 
        /* Request the interrupt */
        ret = request_irq(ndev->irq, mtk_star_handle_irq,
-                         IRQF_TRIGGER_FALLING, ndev->name, ndev);
+                         IRQF_TRIGGER_NONE, ndev->name, ndev);
        if (ret)
                goto err_free_skbs;