usb: atmel_usba_udc: Mask status with enabled irqs
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 6 Jan 2015 13:47:01 +0000 (14:47 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 18:13:29 +0000 (12:13 -0600)
commit9870d895ad87efae130b2990db9ba265271f113b
tree91a5c0b8936d86e62eafafac27e84a96760e7315
parent258e2ddd634c20065d1c41290d10d2e5cf2f56e2
usb: atmel_usba_udc: Mask status with enabled irqs

Avoid interpreting useless status flags when we're not waiting for such
events by masking the status variable with the interrupt enabled register
value.

Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Reported-by: Patrice VILCHEZ <patrice.vilchez@atmel.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/atmel_usba_udc.c