Revert "net: phy: fixed_phy: Fix NULL vs IS_ERR() checking in __fixed_phy_register"
Subsystems (2)
Jakub Kicinski
maintainerQuoted 11 lines · On Sun, 2 Jan 2022 12:35:57 +0100 Sam Ravnborg wrote:
This reverts commit
b45396afa4177f2b1ddfeff7185da733fade1dc3.With the referenced patch applied the following error was seen in the kernel log:
fec 2188000.ethernet: broken fixed-link specification
fec: probe of 2188000.ethernet failed with error -22The problem is that the implementation makes the link-gpios node mandatory - which is not the case.
Quoted 7 lines
fixed_phy_get_gpiod()may return -EPROBE_DEFER so this code needs to useIS_ERR()check and the original code was fine.Fixes b45396afa417 ("net: phy: fixed_phy: Fix NULL vs IS_ERR() checking in __fixed_phy_register")Signed-off-by Sam Ravnborg <[email protected]>Cc Miaoqian Lin <[email protected]>Cc Jakub Kicinski <[email protected]>
This patch didn't register in patchwork for some reason, I applied a very similar patch from Florian instead:
https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/
Not sure why patchwork and lore did not see your posting, sorry :S