]> 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)
commitb6c80c10b8be244b46cb29ed34d260935af3b823
tree7e81f56638235fbc4b22c769b57c59353e70b694
parent9ee1dafeeffba0062aca25eb11762d3b58431c00
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