linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] s3c2410_udc: udc command always disables pull-up instead of passing the command
@ 2011-06-14 11:27 Skacore Systems
       [not found] ` <BANLkTimL=+vaa7NB5FW192rZd08Gv-Z-OA@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Skacore Systems @ 2011-06-14 11:27 UTC (permalink / raw)
  To: greg, linux-usb, linux-arm-msm

Hello *,
There is a bug in s3c2410_udc driver, which triggers when using custom
UDC command for USB pull-up.
As a result driver is always calling user defined UDC command with
wrong parameter (S3C2410_UDC_P_DISABLE) instead of
just passing the parameter to the user defined function.

BR.

Vilo

--- Linux-2.6.39-wp/2.6.39/drivers/usb/gadget/s3c2410_udc.c
2011-05-19 06:06:34.000000000 +0200
+++ Linux-2.6.39/linux-paytec/drivers/usb/gadget/s3c2410_udc.c
2011-06-14 11:59:55.000000000 +0200
@@ -1566,7 +1566,7 @@
                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;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-15  8:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 11:27 [PATCH] s3c2410_udc: udc command always disables pull-up instead of passing the command Skacore Systems
     [not found] ` <BANLkTimL=+vaa7NB5FW192rZd08Gv-Z-OA@mail.gmail.com>
     [not found]   ` <BANLkTimL=+vaa7NB5FW192rZd08Gv-Z-OA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-14 14:58     ` Skacore Systems
     [not found]       ` <BANLkTik+TD1+k1hd-hEteE5OTeDrDAuMZQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-14 16:49         ` Felipe Balbi
2011-06-15  7:30           ` Skacore Systems
2011-06-15  8:38             ` Felipe Balbi
2011-06-15  8:43               ` Skacore Systems

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).