[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 12 Dec 2023 07:22:24 +0000
From: Jianheng Zhang <Jianheng.Zhang@...opsys.com>
To: Andrew Lunn <andrew@...n.ch>
CC: Alexandre Torgue <alexandre.torgue@...s.st.com>,
Jose Abreu <Jose.Abreu@...opsys.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
"open list:STMMAC ETHERNET DRIVER" <netdev@...r.kernel.org>,
"moderated list:ARM/STM32 ARCHITECTURE" <linux-stm32@...md-mailman.stormreply.com>,
"moderated list:ARM/STM32 ARCHITECTURE" <linux-arm-kernel@...ts.infradead.org>,
open list <linux-kernel@...r.kernel.org>,
James Li <James.Li1@...opsys.com>,
Martin McKenny <Martin.McKenny@...opsys.com>
Subject: RE: [PATCH net-next] net: stmmac: xgmac3+: add FPE handshaking
support
Hi Andrew,
> > +static int dwxgmac3_fpe_irq_status(void __iomem *ioaddr, struct net_device *dev)
> > +{
> > + u32 value;
> > + int status;
> >
> > - writel(value, ioaddr + XGMAC_FPE_CTRL_STS);
> > - return;
> > + status = FPE_EVENT_UNKNOWN;
> > +
> > + /* Reads from the XGMAC_FPE_CTRL_STS register should only be performed
> > + * here, since the status flags of MAC_FPE_CTRL_STS are "clear on read"
> > + */
> > + value = readl(ioaddr + XGMAC_FPE_CTRL_STS);
> > +
> > + if (value & XGMAC_TRSP) {
> > + status |= FPE_EVENT_TRSP;
> > + netdev_info(dev, "FPE: Respond mPacket is transmitted\n");
>
> netdev_info()? Is this going to spam the logs? Should it be netdev_dbg()
Yes, netdev_dbg() should be better, let me fix it in the next patch.
Jianheng
>
> Andrew
Powered by blists - more mailing lists