usb: dwc3: ep0: fix SetFeature(TEST)
authorGerard Cauvy <g-cauvy1@ti.com>
Fri, 10 Feb 2012 10:21:18 +0000 (12:21 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 10 Feb 2012 11:11:46 +0000 (13:11 +0200)
commit3b637367ae40b6d3c20e30cb0cdd059e67bbf848
tree0d74b50fafb3f1191a29b87a0dcd1660cb95d7d2
parent090725431b9636a0a59516ff0fe94933cf09a82b
usb: dwc3: ep0: fix SetFeature(TEST)

When host requests us to enter a test mode,
we cannot directly enter the test mode before
Status Phase is completed, otherwise the core
will never be able to deliver the Status ZLP
to host, because it has already entered the
requested Test Mode.

In order to fix the error, we move the actual
start of Test Mode right after we receive
Transfer Complete event of the status phase.

Signed-off-by: Gerard Cauvy <g-cauvy1@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c
This page took 0.027737 seconds and 5 git commands to generate.