mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 22:36:05 +00:00
net: zynq: Use generic_phy_valid() helper
The documentation for struct phy state that "The content of the
structure is managed solely by the PHY API and PHY drivers".
Change to use the generic_phy_valid() helper to check if phy is valid.
Fixes: 10c50b1fac
("net: zynq: Add support for PHY configuration in SGMII mode")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
This commit is contained in:
parent
017ae4920b
commit
8ec228b62b
1 changed files with 2 additions and 1 deletions
|
@ -890,7 +890,8 @@ static int zynq_gem_probe(struct udevice *dev)
|
|||
if (ret)
|
||||
goto err3;
|
||||
|
||||
if (priv->interface == PHY_INTERFACE_MODE_SGMII && phy.dev) {
|
||||
if (priv->interface == PHY_INTERFACE_MODE_SGMII &&
|
||||
generic_phy_valid(&phy)) {
|
||||
if (IS_ENABLED(CONFIG_DM_ETH_PHY)) {
|
||||
if (device_is_compatible(dev, "cdns,zynqmp-gem") ||
|
||||
device_is_compatible(dev, "xlnx,zynqmp-gem")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue