]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mdio-gpio: Fix working over slow can_sleep GPIOs
authorMartin Schiller <ms@dev.tdt.de>
Wed, 14 Nov 2018 11:54:49 +0000 (12:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Nov 2018 04:25:22 +0000 (20:25 -0800)
commitc0e17989ea263ba13c2b4264725496a35d445813
tree80fd87024443e7b4b8e3c151d8a1ffc5dc7429c8
parentc7d828f569626cc10567bddc73905cbc8aa0edec
net: phy: mdio-gpio: Fix working over slow can_sleep GPIOs

This commit re-enables support for slow GPIO pins. It was initially
introduced by commit 453ac641ef33 ("net: mdio-gpio: support access that
may sleep") and got lost by commit 4e5bc991395d ("net: mdio-gpio:
Convert to use gpiod functions where possible").

Also add a warning about slow GPIO pins like it is done in i2c-gpio.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c