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)
commit738871b09250ee9043c0e05101fcc254059f1492
tree63510c2996b1b9742e3d63e7fb440db845aa3243
parent31d00ca4ce0e1abf5342854606bbe7d20e38c3f8
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