[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5ebfab5e96d957d671a055a342dc56e47c7c4d8a.camel@mediatek.com>
Date: Thu, 27 Jan 2022 09:13:55 +0800
From: Biao Huang <biao.huang@...iatek.com>
To: Bartosz Golaszewski <brgl@...ev.pl>
CC: David Miller <davem@...emloft.net>,
Rob Herring <robh+dt@...nel.org>,
Fabien Parent <fparent@...libre.com>,
Jakub Kicinski <kuba@...nel.org>,
"Felix Fietkau" <nbd@....name>, John Crispin <john@...ozen.org>,
Sean Wang <sean.wang@...iatek.com>,
Mark Lee <Mark-MC.Lee@...iatek.com>,
"Matthias Brugger" <matthias.bgg@...il.com>,
netdev <netdev@...r.kernel.org>,
devicetree <devicetree@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
"moderated list:ARM/Mediatek SoC..."
<linux-mediatek@...ts.infradead.org>,
Yinghua Pan <ot_yinghua.pan@...iatek.com>,
<srv_heupstream@...iatek.com>,
Macpaul Lin <macpaul.lin@...iatek.com>
Subject: Re: [PATCH net-next v1 2/9] net: ethernet: mtk-star-emac: modify
IRQ trigger flags
Dear Bartosz,
Thanks for your comments!
On Tue, 2022-01-25 at 11:22 +0100, Bartosz Golaszewski wrote:
> On Thu, Jan 20, 2022 at 8:02 AM Biao Huang <biao.huang@...iatek.com>
> wrote:
> >
> > 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@...iatek.com>
> > Signed-off-by: Yinghua Pan <ot_yinghua.pan@...iatek.com>
> > ---
> > drivers/net/ethernet/mediatek/mtk_star_emac.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/net/ethernet/mediatek/mtk_star_emac.c
> > b/drivers/net/ethernet/mediatek/mtk_star_emac.c
> > index 26f5020f2e9c..7c2af775d601 100644
> > --- a/drivers/net/ethernet/mediatek/mtk_star_emac.c
> > +++ b/drivers/net/ethernet/mediatek/mtk_star_emac.c
> > @@ -959,7 +959,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;
> >
> > --
> > 2.25.1
> >
>
> Reviewed-by: Bartosz Golaszewski <brgl@...ev.pl>
I'll add reviewd-by in next send.
Powered by blists - more mailing lists