[PATCH 05/14] usb: lpc32xx_udc: using common vbus_active
Peter Chen
peter.chen at freescale.com
Thu Mar 14 01:50:33 EDT 2013
Using common vbus_active to indicate vbus status
CC: Felipe Balbi <balbi at ti.com>
Signed-off-by: Peter Chen <peter.chen at freescale.com>
---
drivers/usb/gadget/lpc32xx_udc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/usb/gadget/lpc32xx_udc.c b/drivers/usb/gadget/lpc32xx_udc.c
index aa04089..13270a9 100644
--- a/drivers/usb/gadget/lpc32xx_udc.c
+++ b/drivers/usb/gadget/lpc32xx_udc.c
@@ -2550,6 +2550,7 @@ static int lpc32xx_vbus_session(struct usb_gadget *gadget, int is_active)
spin_lock_irqsave(&udc->lock, flags);
+ gadget->vbus_active = is_active;
/* Doesn't need lock */
if (udc->driver) {
udc_clk_set(udc, 1);
--
1.7.0.4
More information about the linux-arm-kernel
mailing list