net: ethernet: sun4i-emac: Support phy-handle property for finding PHYs
authorChen-Yu Tsai <wens@csie.org>
Tue, 6 Aug 2019 07:35:39 +0000 (15:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 18:29:16 +0000 (11:29 -0700)
commit5c4e2e1af345426f63410a50e2a678673574aa02
treeef580c4faf8b86e65ebf3828ec0d16803d570d70
parentf7813d5c637e43209ffdc20a9b25a13fcbb86eef
net: ethernet: sun4i-emac: Support phy-handle property for finding PHYs

The sun4i-emac uses the "phy" property to find the PHY it's supposed to
use. This property was deprecated in favor of "phy-handle" in commit
8c5b09447625 ("dt-bindings: net: sun4i-emac: Convert the binding to a
schemas").

Add support for this new property name, and fall back to the old one in
case the device tree hasn't been updated.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/allwinner/sun4i-emac.c