]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1be331f8fab2990316d5fe810b0a891413ef5b6
treeef580c4faf8b86e65ebf3828ec0d16803d570d70
parentfdde4221e2f1419ad64603851dac0eee61fff7ac
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
d49e1670e699 ("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