]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: gadget: atmel_usba_udc: Fixed vbus_prev initial state
authorSylvain Rochet <sylvain.rochet@finsecur.com>
Thu, 12 Feb 2015 17:54:04 +0000 (18:54 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 11 Mar 2015 15:19:36 +0000 (10:19 -0500)
commit227ab58cff3c26ec279598112887d6bcca677a0c
tree8ddde141147f6511c03af3da8d90f2ba550d32ca
parent656e7c36bd70e115266cf280e0ff049506ceb16c
usb: gadget: atmel_usba_udc: Fixed vbus_prev initial state

If vbus gpio is high at init, we should set vbus_prev to true
accordingly to the current vbus state. Without that, we skip the first
vbus interrupt because the saved vbus state is not consistent.

Signed-off-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/atmel_usba_udc.c