OSDN Git Service

usb: phy-generic: Use gpiod_set_value_cansleep
authorMike Looijmans <mike.looijmans@topic.nl>
Wed, 21 Feb 2018 15:04:01 +0000 (16:04 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 13 Mar 2018 08:47:52 +0000 (10:47 +0200)
commit5864470a6e6bf2d4d67fb719b012f88ea48eb656
tree14577b1ba1d7f46d167adedcc412133a1d3341c9
parent3589cce2b92ba8a11372f2c707adc9eb623efa67
usb: phy-generic: Use gpiod_set_value_cansleep

The nop_reset and shutdown methods are called in a context that can sleep,
so use gpiod_set_value_cansleep instead of gpiod_set_value.

If you've connected the reset line to a GPIO expander, you'd get a kernel
"slowpath" warning with gpiod_set_value.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/phy/phy-generic.c