[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e5e1af31a4e609c94ac306f4f5140193@kernel.org>
Date: Mon, 26 Jun 2023 09:37:47 +0200
From: Michael Walle <mwalle@...nel.org>
To: Simon Horman <simon.horman@...igine.com>
Cc: Andrew Lunn <andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
<kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Yisen Zhuang
<yisen.zhuang@...wei.com>, Salil Mehta <salil.mehta@...wei.com>, Florian
Fainelli <florian.fainelli@...adcom.com>, Broadcom internal kernel review
list <bcm-kernel-feedback-list@...adcom.com>, Marek BehĂșn <kabel@...nel.org>, Xu Liang <lxu@...linear.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v2 10/10] net: mdio: support C45-over-C22 when
probed via OF
Hi Simon,
Am 2023-06-23 22:48, schrieb Simon Horman:
> On Fri, Jun 23, 2023 at 12:29:19PM +0200, Michael Walle wrote:
>
> ...
>
>> @@ -178,24 +209,26 @@ int __of_mdiobus_register(struct mii_bus *mdio,
>> struct device_node *np,
>> if (rc)
>> return rc;
>>
>> - /* Loop over the child nodes and register a phy_device for each phy
>> */
>> + /* Loop over the child nodes, skipping C45 PHYs so we can scan for
>> + * broken C22 PHYs. The C45 PHYs will be registered afterwards.
>> + */
>> for_each_available_child_of_node(np, child) {
>> - addr = of_mdio_parse_addr(&mdio->dev, child);
>> - if (addr < 0) {
>> - scanphys = true;
>> + if (of_mdiobus_child_is_c45_phy(child))
>> continue;
>> - }
>> + rc = of_mdiobus_register_child(mdio, child, &scanphys);
>> + if (rc)
>> + goto unregister;
>> + }
>>
>> - if (of_mdiobus_child_is_phy(child))
>> - rc = of_mdiobus_register_phy(mdio, child, addr);
>> - else
>> - rc = of_mdiobus_register_device(mdio, child, addr);
>> + /* Some C22 PHYs are broken with C45 transactions. */
>> + mdiobus_scan_for_broken_c45_access(mdio);
>
> Hi Michael,
>
> Unfortunately this seems to cause a build fauilure
> for x86_64 allmodconfig.
>
> ERROR: modpost: "mdiobus_scan_for_broken_c45_access"
> [drivers/net/mdio/of_mdio.ko] undefined!
Oops, sorry. Seems I've forgot to export it. I guess it should
be EXPORT_SYMBOL_GPL().
-michael
Powered by blists - more mailing lists