]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: zynq: Use generic_phy_valid() helper
authorJonas Karlman <jonas@kwiboo.se>
Thu, 31 Aug 2023 22:16:38 +0000 (22:16 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 13 Sep 2023 19:52:20 +0000 (15:52 -0400)
commit8ec228b62b4546376757492bf6fbd9607e97b98e
tree44900e42486ebe105bb550f6cb9cb4600f7b4af6
parent017ae4920ba71badb6ec92184fc0b529b7153fc5
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: 10c50b1facbf ("net: zynq: Add support for PHY configuration in SGMII mode")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
drivers/net/zynq_gem.c