diff options
author | Felipe Balbi <balbi@ti.com> | 2011-10-14 08:11:49 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-12 04:48:42 -0500 |
commit | df62df56e13d73cb0dd4c54649d4fe13557128f8 (patch) | |
tree | 1436686e851eb583433c98963496e53be1d3420b /drivers/usb/dwc3/core.h | |
parent | 05870c5ba2002c7d49adf8875cca49ee062af894 (diff) |
usb: dwc3: workaround: missing disconnect event
DWC3 revisions <1.88a have an issue which would
case a missing Disconnect event if cable is
disconnected while there's a Setup packet
pending the FIFO.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r-- | drivers/usb/dwc3/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index b901a4d3b068..836cf9942a4f 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h | |||
@@ -578,6 +578,7 @@ struct dwc3_hwparams { | |||
578 | * @ep0_bounced: true when we used bounce buffer | 578 | * @ep0_bounced: true when we used bounce buffer |
579 | * @ep0_expect_in: true when we expect a DATA IN transfer | 579 | * @ep0_expect_in: true when we expect a DATA IN transfer |
580 | * @start_config_issued: true when StartConfig command has been issued | 580 | * @start_config_issued: true when StartConfig command has been issued |
581 | * @setup_packet_pending: true when there's a Setup Packet in FIFO. Workaround | ||
581 | * @ep0_next_event: hold the next expected event | 582 | * @ep0_next_event: hold the next expected event |
582 | * @ep0state: state of endpoint zero | 583 | * @ep0state: state of endpoint zero |
583 | * @link_state: link state | 584 | * @link_state: link state |
@@ -633,6 +634,7 @@ struct dwc3 { | |||
633 | unsigned ep0_bounced:1; | 634 | unsigned ep0_bounced:1; |
634 | unsigned ep0_expect_in:1; | 635 | unsigned ep0_expect_in:1; |
635 | unsigned start_config_issued:1; | 636 | unsigned start_config_issued:1; |
637 | unsigned setup_packet_pending:1; | ||
636 | unsigned delayed_status:1; | 638 | unsigned delayed_status:1; |
637 | 639 | ||
638 | enum dwc3_ep0_next ep0_next_event; | 640 | enum dwc3_ep0_next ep0_next_event; |