]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: dwc3: add has_hibernation flag
authorFelipe Balbi <balbi@ti.com>
Thu, 19 Dec 2013 18:14:29 +0000 (12:14 -0600)
committerFelipe Balbi <balbi@ti.com>
Wed, 5 Mar 2014 15:44:51 +0000 (09:44 -0600)
this will tell driver that this version
of the core was configured with hibernation
feature enabled.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h

index eab166a02cd6d9b2857d564473e504e241a82c13..a2b01785bb3fb34137e1e7413df078ed3b399bca 100644 (file)
@@ -636,6 +636,7 @@ struct dwc3_scratchpad_array {
  * @delayed_status: true when gadget driver asks for delayed status
  * @ep0_bounced: true when we used bounce buffer
  * @ep0_expect_in: true when we expect a DATA IN transfer
+ * @has_hibernation: true when dwc3 was configured with Hibernation
  * @is_selfpowered: true when we are selfpowered
  * @needs_fifo_resize: not all users might want fifo resizing, flag it
  * @pullups_connected: true when Run/Stop bit is set
@@ -729,6 +730,7 @@ struct dwc3 {
        unsigned                delayed_status:1;
        unsigned                ep0_bounced:1;
        unsigned                ep0_expect_in:1;
+       unsigned                has_hibernation:1;
        unsigned                is_selfpowered:1;
        unsigned                needs_fifo_resize:1;
        unsigned                pullups_connected:1;