From 0d8444e23e422135ce0caa8b95de1e07052706c7 Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Thu, 24 Mar 2011 14:25:45 +0800 Subject: ENGR00141092 usb: fix some tiny bugs for usb For android system, the gadget driver is built in, when the usb device is on otg port, the udc suspended counter will be error at the situation. This patch fix it, if this situation is met, the udc suspended counter will be not added. Using A VBus Valid to judge whether the usb cable is connected, as some boards' vbus may higher than 0.8v(B Session Valid) Signed-off-by: Peter Chen --- drivers/usb/gadget/arcotg_udc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/usb/gadget/arcotg_udc.h') diff --git a/drivers/usb/gadget/arcotg_udc.h b/drivers/usb/gadget/arcotg_udc.h index bc88afb360c3..8c154d0e858e 100644 --- a/drivers/usb/gadget/arcotg_udc.h +++ b/drivers/usb/gadget/arcotg_udc.h @@ -265,6 +265,7 @@ struct usb_sys_interface { #define OTGSC_B_SESSION_VALID_IRQ_EN (1 << 27) #define OTGSC_B_SESSION_VALID_IRQ_STS (1 << 19) #define OTGSC_B_SESSION_VALID (1 << 11) +#define OTGSC_A_BUS_VALID (1 << 9) /* bit 28 is parallel transceiver width for UTMI interface */ #define PORTSCX_PTW (0x10000000) -- cgit v1.2.3