]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: In ZynqMP initialization make SGMII phy configuration optional
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Wed, 20 Apr 2022 11:03:10 +0000 (16:33 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2022 11:52:27 +0000 (12:52 +0100)
commit7d28dc8b24d4667229ab6cc222522609acaaccaa
tree0742fb9d54b393d4c2e9ef446021640b870637b0
parent81a14e6c2b0921f4c98861f694943a500fdc7f47
net: macb: In ZynqMP initialization make SGMII phy configuration optional

In the macb binding documentation "phys" is an optional property. Make
implementation in line with it. This change allows the traditional flow
in which first stage bootloader does PS-GT configuration to work along
with newer use cases in which PS-GT configuration is managed by the
phy-zynqmp driver.

It fixes below macb probe failure when macb DT node doesn't have SGMII
phys handle.
"macb ff0b0000.ethernet: error -ENODEV: failed to get PS-GTR PHY"

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c