From: Viliam Mateicka Date: Thu, 16 Jun 2011 08:04:36 +0000 (+0200) Subject: USB: s3c2410_udc: fix custom UDC command handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5b8261385c5c3e5cf70a95c36cce71939b844a16;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) return; 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)) { int value;