usb-otg: atmel-usba-udc: initialize usb_prev to the actual value
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): CA+XxOSExCVBd0TFuY+wmjL-pxhp148H1FpnQLBtV0q2R5OwHzg@mail.gmail.com
PATCH 1/1 usb-otg: atmel-usba-udc: initialize usb_prev to the actual value
During start of the usb gadget device, usb_prev must be initialize to the actual value of vbus_pin to avoid missing the first usb host detection.
Signed-off-by ltourlonias <[email protected]>
--- drivers/usb/gadget/atmel_usba_udc.c | 1 + 1 file changed, 1 insertion(+)
(quoted diff) +0 -0
b/drivers/usb/gadget/atmel_usba_udc.c
index 1d97222..258edf9 100644
drivers/usb/gadget/atmel_usba_udc.c +1 -0
@@ -1796,6 +1796,7 @@ static int atmel_usba_start(struct usb_gadget *gadget,toggle_bias (1 );usba_writel (udc,CTRL ,USBA_ENABLE_MASK );usba_writel (udc,INT_ENB ,USBA_END_OF_RESET ); + udc->vbus_prev=1 ; }spin_unlock_irqrestore (&udc->lock, flags);
Signature · 1 line
1.7.10.4
PATCH 1/1 usb-otg: atmel-usba-udc: initialize usb_prev to the actual value
Helle Lo?c,
Quoted 3 lines · lo?c tourlonias
During start of the usb gadget device,
usb_prevmust be initialize to the actual value ofvbus_pinto avoid missing the first usb host detection.
You are a bit too late, it is already fixed[1].
Sylvain