usb: gadget: pch_udc: Reduce redundant interrupt
authorTomoya MORINAGA <tomoya.rohm@gmail.com>
Thu, 12 Jan 2012 02:27:09 +0000 (11:27 +0900)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 30 Apr 2012 18:15:11 +0000 (19:15 +0100)
commit35ab2cd9c2446fc1d755c8f6e92720787535c264
tree20a8b9a45a6173dbe3b67bd571bcf7022587b369
parent5fa4669c6a207daf5200cac4315e1aa85b478aae
usb: gadget: pch_udc: Reduce redundant interrupt

BugLink: http://bugs.launchpad.net/bugs/987337

commit 833310402c54ad9b676b465fc53ad276b13d36be upstream.

ISSUE:
USB Suspend interrupts occur frequently.

CAUSE:
When it is called pch_udc_reconnect() in USB Suspend, it repeats reset and
Suspend.

SOLUTION:
pch_udc_reconnect() does not enable all interrupts.  When an enumeration event
occurred the driver enables all interrupts.

Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/usb/gadget/pch_udc.c