]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: micrel: add coma mode GPIO
authorMichael Walle <michael@walle.cc>
Wed, 27 Apr 2022 21:44:06 +0000 (23:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Apr 2022 23:37:53 +0000 (16:37 -0700)
commitce24bd875434ddfec7835b16a3855a9fb192c2e1
tree63510c2996b1b9742e3d63e7fb440db845aa3243
parent994a26d03c4f85e9ac8b2c027bbb470cf1920633
net: phy: micrel: add coma mode GPIO

The LAN8814 has a coma mode pin which puts the PHY into isolate and
power-dowm mode. Unfortunately, the mode cannot be disabled by a
register. Usually, the input pin has a pull-up and connected to a GPIO
which can then be used to disable the mode. Try to get the GPIO and
deassert it.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/micrel.c