USB: at91_udc wakeup event updates
commit66e56ce75e39210415fb12ceacd5f3580ad72d50
authorDavid Brownell <david-b@pacbell.net>
Tue, 16 Jan 2007 20:46:39 +0000 (16 12:46 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:44:37 +0000 (7 15:44 -0800)
treeaefd162287e90def0a034c4a6c7aaa24617c779f
parent57e06c11372eccf5acebdd4664eb025fee76c561
USB: at91_udc wakeup event updates

This updates the AT91 UDC driver's handling of wakeup events:

 - Fix a bug in the original scheme, which was never updated after
   the {enable,disable}_irq_wake() semantics were updated to address
   refcounting issues (i.e. behave for shared irqs).

 - Couple handling of both type of wakeup events, to be more direct.  The
   controller can be source of wakeup events for cases like bus reset
   and USB resume.  On some boards, VBUS sensing is also IRQ driven.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/at91_udc.c
drivers/usb/gadget/at91_udc.h