[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200902221152.GI3050651@lunn.ch>
Date: Thu, 3 Sep 2020 00:11:52 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: netdev@...r.kernel.org, adam.rudzinski@....net.pl,
m.felsch@...gutronix.de, hkallweit1@...il.com,
richard.leitner@...data.com, zhengdejin5@...il.com,
devicetree@...r.kernel.org, kernel@...gutronix.de, kuba@...nel.org,
robh+dt@...nel.org
Subject: Re: [RFC net-next 1/2] net: phy: Support enabling clocks prior to
bus probe
Hi Florian
> Some Ethernet PHYs may require that their clock, which typically drives
> their logic to respond to reads on the MDIO bus be enabled before
> issusing a MDIO bus scan.
issuing
>
> We have a chicken and egg problem though which is that we cannot enable
> a given Ethernet PHY's device clock until we have a phy_device instance
> create and called the driver's probe function. This will not happen
> unless we are successful in probing the PHY device, which requires its
> clock(s) to be turned on.
>
> For DT based systems we can solve this by using of_clk_get() which
> operates on a device_node reference, and make sure that all clocks
> associaed with the node are enabled prior to doing any reads towards the
associated
Not fully looked at the code yet.
Andrew
Powered by blists - more mailing lists