]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mdio-gpio: Fix working over slow can_sleep GPIOs
authorMartin Schiller <ms@dev.tdt.de>
Fri, 16 Nov 2018 07:38:36 +0000 (08:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 05:11:51 +0000 (21:11 -0800)
commitd6e54adb5cc2226324670dffdc6ce826fb6f676b
tree9c48eebcc506cd6dd6d442842839d549e6175767
parent5f69aa24f95e8c48b7ec0f1b1a39208c5e03dcb0
net: phy: mdio-gpio: Fix working over slow can_sleep GPIOs

Up until commit 4e5bc991395d ("net: mdio-gpio: Convert to use gpiod
functions where possible"), the _cansleep variants of the gpio_ API was
used. After that commit and the change to gpiod_ API, the _cansleep()
was dropped. This then results in WARN_ON() when used with GPIO
devices which do sleep. Add back the _cansleep() to avoid this.

Fixes: 4e5bc991395d ("net: mdio-gpio: Convert to use gpiod functions where possible")
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c