]> git.baikalelectronics.ru Git - kernel.git/commit
net/macb: add support for resetting PHY using GPIO
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 11 Dec 2015 10:34:53 +0000 (11:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2015 03:04:12 +0000 (22:04 -0500)
commit1c4c38edc9b78f99a2a94a6bc3fab3f93da1b753
tree7e81f56638235fbc4b22c769b57c59353e70b694
parentd3cd15b9404ce0684990238251f1a2c2f491ae98
net/macb: add support for resetting PHY using GPIO

With device tree it is no more possible to reset the PHY at board
level. Furthermore, doing in the driver allow to power down the PHY when
the network interface is no more used.

This reset can't be done at the PHY driver level. The PHY must be able to
answer the to the mii bus scan to let the kernel creating a PHY device.

The patch introduces a new optional property "phy-reset-gpios" inspired
from the one use for the FEC.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/macb.txt
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h