Re: [PATCH] net: axienet: allow setups without MDIO

2021-03-24 Thread Daniel Mack
On 3/24/21 1:38 PM, Andrew Lunn wrote: > On Wed, Mar 24, 2021 at 10:48:55AM +0100, Daniel Mack wrote: >> In setups with fixed-link settings on the hardware bus there is no mdio node >> in DTS. axienet_probe() already handles that gracefully but lp->mii_bus is >> then NULL. >> >> Fix code that tries

Re: [PATCH] net: axienet: allow setups without MDIO

2021-03-24 Thread Andrew Lunn
On Wed, Mar 24, 2021 at 10:48:55AM +0100, Daniel Mack wrote: > In setups with fixed-link settings on the hardware bus there is no mdio node > in DTS. axienet_probe() already handles that gracefully but lp->mii_bus is > then NULL. > > Fix code that tries to blindly grab the MDIO lock by introducing

[PATCH] net: axienet: allow setups without MDIO

2021-03-24 Thread Daniel Mack
In setups with fixed-link settings on the hardware bus there is no mdio node in DTS. axienet_probe() already handles that gracefully but lp->mii_bus is then NULL. Fix code that tries to blindly grab the MDIO lock by introducing two helper functions that make the locking conditional. Signed-off-by