projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
900e062
)
usb: misc: usb3503: Use gpio_set_value_cansleep()
author
Mark Brown
<broonie@linaro.org>
Fri, 9 Aug 2013 10:41:49 +0000
(11:41 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 19:19:44 +0000
(12:19 -0700)
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>
drivers/usb/misc/usb3503.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/misc/usb3503.c
b/drivers/usb/misc/usb3503.c
index 41b422824c87f2526abb547bf0bdafbeb9236329..2e9e100a182ebf5bba82496e6a836af6d1739168 100644
(file)
--- a/
drivers/usb/misc/usb3503.c
+++ b/
drivers/usb/misc/usb3503.c
@@
-103,7
+103,7
@@
static int usb3503_clear_bits(struct i2c_client *client, char reg, char req)
static int usb3503_reset(int gpio_reset, int state)
{
if (gpio_is_valid(gpio_reset))
- gpio_set_value(gpio_reset, state);
+ gpio_set_value
_cansleep
(gpio_reset, state);
/* Wait T_HUBINIT == 4ms for hub logic to stabilize */
if (state)