diff options
author | Viliam Mateicka <viliam.mateicka@gmail.com> | 2011-06-16 04:04:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-01 17:51:43 -0400 |
commit | 5b8261385c5c3e5cf70a95c36cce71939b844a16 (patch) | |
tree | 6271366e8550a2b4f57784446796ab2ded89e5b7 /drivers/usb | |
parent | bc8687db894d537283b9e1e37806cca101185e56 (diff) |
USB: s3c2410_udc: fix custom UDC command handling
There is a bug in Samsung's UDC driver, which is completely disabling
the USB device when a custom UDC command is used.
Following patch seems to get the right behavior (e.g. enabling pull-up
instead of disabling then Vcc is applied).
Signed-off-by: Viliam Mateicka <viliam.mateicka@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/s3c2410_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c index 394c1a3bbe83..85c1b0d66293 100644 --- a/drivers/usb/gadget/s3c2410_udc.c +++ b/drivers/usb/gadget/s3c2410_udc.c | |||
@@ -1573,7 +1573,7 @@ static void s3c2410_udc_command(enum s3c2410_udc_cmd_e cmd) | |||
1573 | return; | 1573 | return; |
1574 | 1574 | ||
1575 | if (udc_info->udc_command) { | 1575 | if (udc_info->udc_command) { |
1576 | udc_info->udc_command(S3C2410_UDC_P_DISABLE); | 1576 | udc_info->udc_command(cmd); |
1577 | } else if (gpio_is_valid(udc_info->pullup_pin)) { | 1577 | } else if (gpio_is_valid(udc_info->pullup_pin)) { |
1578 | int value; | 1578 | int value; |
1579 | 1579 | ||