[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YqhLI0vWuDWNTQ8h@shell.armlinux.org.uk>
Date: Tue, 14 Jun 2022 09:47:31 +0100
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: Ong Boon Leong <boon.leong.ong@...el.com>
Cc: Alexandre Torgue <alexandre.torgue@...s.st.com>,
Jose Abreu <Jose.Abreu@...opsys.com>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
Paolo Abeni <pabeni@...hat.com>,
"David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Vladimir Oltean <olteanv@...il.com>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Giuseppe Cavallaro <peppe.cavallaro@...com>,
netdev@...r.kernel.org, linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Emilio Riva <emilio.riva@...csson.com>
Subject: Re: [PATCH net-next v4 3/5] net: pcs: xpcs: add CL37 1000BASE-X AN
support
On Tue, Jun 14, 2022 at 11:00:28AM +0800, Ong Boon Leong wrote:
> +int xpcs_modify_changed(struct dw_xpcs *xpcs, int dev, u32 reg,
> + u16 mask, u16 set)
Why is this globally visible? I can find no reason for it in this patch
set.
> +{
> + u32 reg_addr = mdiobus_c45_addr(dev, reg);
> + struct mii_bus *bus = xpcs->mdiodev->bus;
> + int addr = xpcs->mdiodev->addr;
> +
> + return mdiobus_modify_changed(bus, addr, reg_addr, mask, set);
There is a mdiodev_modify_changed() which would be slightly cleaner
here.
Thanks!
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists