]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: add phy-handle support to the platform layer
authorMathieu Olivari <mathieu@codeaurora.org>
Wed, 27 May 2015 18:02:47 +0000 (11:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 00:04:36 +0000 (17:04 -0700)
commitb3d9943fe7cc316700a6e861a19b0e9d8c44171c
tree294a0500894fb9cc6f9f3f7001952b39fbba0dda
parentd80b3a5dc2ffc325effd8fdb32a13e941c230f64
stmmac: add phy-handle support to the platform layer

On stmmac driver, PHY specification in device-tree was done using the
non-standard property "snps,phy-addr". Specifying a PHY on a different
MDIO bus that the one within the stmmac controller doesn't seem to be
possible when device-tree is used.

This change adds support for the phy-handle property, as specified in
Documentation/devicetree/bindings/net/ethernet.txt.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
include/linux/stmmac.h