Re: [PATCH net] Revert "net: phy: fixed_phy: Fix NULL vs IS_ERR() checking in __fixed_phy_register"

From: Andrew Lunn
Date: Mon Jan 03 2022 - 15:17:14 EST


On Mon, Jan 03, 2022 at 11:34:52AM -0800, Florian Fainelli wrote:
> This reverts commit b45396afa4177f2b1ddfeff7185da733fade1dc3 ("net: phy:
> fixed_phy: Fix NULL vs IS_ERR() checking in __fixed_phy_register")
> since it prevents any system that uses a fixed PHY without a GPIO
> descriptor from properly working:
>
> [ 5.971952] brcm-systemport 9300000.ethernet: failed to register fixed PHY
> [ 5.978854] brcm-systemport: probe of 9300000.ethernet failed with error -22
> [ 5.986047] brcm-systemport 9400000.ethernet: failed to register fixed PHY
> [ 5.992947] brcm-systemport: probe of 9400000.ethernet failed with error -22
>
> Fixes: b45396afa417 ("net: phy: fixed_phy: Fix NULL vs IS_ERR() checking in __fixed_phy_register")
> Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

I was hoping the original author would fixup the breakage, but it has
been a couple of days now....

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew