From: Sylvain Rochet Date: Thu, 12 Feb 2015 17:54:05 +0000 (+0100) Subject: usb: gadget: atmel_usba_udc: Request an auto disabled Vbus signal IRQ X-Git-Tag: omap-for-v4.1/fixes-rc1~167^2~55^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb0a203c3a4e37b4bbb1f8ef55a855618dbba265;p=pandora-kernel.git usb: gadget: atmel_usba_udc: Request an auto disabled Vbus signal IRQ Vbus IRQ handler needs a started UDC driver to work because it uses udc->driver, which is set by the UDC start handler. The previous way chosen was to return from interrupt if udc->driver is NULL using a spinlock around the check. We now request an auto disabled (IRQ_NOAUTOEN) Vbus signal IRQ instead of an auto enabled IRQ followed by disable_irq(). This way we remove the very small timeslot of enabled IRQ which existed previously between request() and disable(). We don't need anymore to check if udc->driver is NULL in IRQ handler. Signed-off-by: Sylvain Rochet Suggested-by: Boris Brezillon Acked-by: Boris Brezillon Acked-by: Nicolas Ferre Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed