Commit 5b826138 authored by Viliam Mateicka's avatar Viliam Mateicka Committed by Greg Kroah-Hartman

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: default avatarViliam Mateicka <viliam.mateicka@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bc8687db
...@@ -1573,7 +1573,7 @@ static void s3c2410_udc_command(enum s3c2410_udc_cmd_e cmd) ...@@ -1573,7 +1573,7 @@ static void s3c2410_udc_command(enum s3c2410_udc_cmd_e cmd)
return; return;
if (udc_info->udc_command) { if (udc_info->udc_command) {
udc_info->udc_command(S3C2410_UDC_P_DISABLE); udc_info->udc_command(cmd);
} else if (gpio_is_valid(udc_info->pullup_pin)) { } else if (gpio_is_valid(udc_info->pullup_pin)) {
int value; int value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment