]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: spi_ks8995: add support for resetting switch using GPIO
authorHelmut Buchsbaum <helmut.buchsbaum@gmail.com>
Tue, 9 Feb 2016 19:47:15 +0000 (20:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 16:34:24 +0000 (11:34 -0500)
commita39e3847fc352f47540528d076fda1550affad7f
treea9bdaaffe103e6f1a934b77168ff0e563960fb32
parentc5689742271707a211bb08ac42635bf87eb0a8d8
net: phy: spi_ks8995: add support for resetting switch using GPIO

When using device tree it is no more possible to reset the PHY at board
level. Furthermore, doing in the driver allows to power down the switch
when it is not used any more.

The patch introduces a new optional property "reset-gpios" denoting an
appropriate GPIO handle, e.g.:

reset-gpios = <&gpio0 46 GPIO_ACTIVE_LOW>

Signed-off-by: Helmut Buchsbaum <helmut.buchsbaum@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/spi_ks8995.c