Skip to contentSkip to conversation

Revert "net: phy: fixed_phy: Fix NULL vs IS_ERR() checking in __fixed_phy_register"

PATCH Jakub Kicinski 1 participant 1 message Jan 4, 2022 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#2 lore raw
In reply to a message not in the archive
Quoted 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 -22

The 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 use IS_ERR() check and the original code was fine.

Fixes b45396afa417 ("net: phy: fixed_phy: Fix NULL vs IS_ERR() checking in __fixed_phy_register")
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