Commit 24455b09b4838cdc0165af0f24ca63ec9ad54e44
Committed by
Greg Kroah-Hartman
1 parent
900e06212d
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
usb: misc: usb3503: Use gpio_set_value_cansleep()
The /RESET GPIO is not manipulated from atomic context so support GPIOs that can't be written from atomic context by using _cansleep(). Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/usb/misc/usb3503.c
... | ... | @@ -103,7 +103,7 @@ |
103 | 103 | static int usb3503_reset(int gpio_reset, int state) |
104 | 104 | { |
105 | 105 | if (gpio_is_valid(gpio_reset)) |
106 | - gpio_set_value(gpio_reset, state); | |
106 | + gpio_set_value_cansleep(gpio_reset, state); | |
107 | 107 | |
108 | 108 | /* Wait T_HUBINIT == 4ms for hub logic to stabilize */ |
109 | 109 | if (state) |