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>
[mszyprow: mainline commit
24455b09b4838cdc0165af0f24ca63ec9ad54e44]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I24455b09b4838cdc0165af0f24ca63ec9ad54e44
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)