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)
commitdfa0d55ff6be64e7b6881212a291cb95f8da3b08
tree80fd87024443e7b4b8e3c151d8a1ffc5dc7429c8
parent19ab69107d3ecfb7cd3e38ad262a881be40c01a3
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 2d6c9091ab76 ("net: mdio-gpio: support access that
may sleep") and got lost by commit 7e5fbd1e0700 ("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