aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/vmd.c
diff options
context:
space:
mode:
authorThinh Nguyen <[email protected]>2020-10-22 22:44:59 +0000
committerFelipe Balbi <[email protected]>2020-10-27 09:33:53 +0000
commitfa27e2f6c5e674f3f1225f9ca7a7821faaf393bb (patch)
treee10842faae981a6e37a3e89e262c979e453f061c /drivers/pci/controller/vmd.c
parentusb: gadget: fsl: fix null pointer checking (diff)
downloadkernel-fa27e2f6c5e674f3f1225f9ca7a7821faaf393bb.tar.gz
kernel-fa27e2f6c5e674f3f1225f9ca7a7821faaf393bb.zip
usb: dwc3: ep0: Fix delay status handling
If we want to send a control status on our own time (through delayed_status), make sure to handle a case where we may queue the delayed status before the host requesting for it (when XferNotReady is generated). Otherwise, the driver won't send anything because it's not EP0_STATUS_PHASE yet. To resolve this, regardless whether dwc->ep0state is EP0_STATUS_PHASE, make sure to clear the dwc->delayed_status flag if dwc3_ep0_send_delayed_status() is called. The control status can be sent when the host requests it later. Cc: <[email protected]> Fixes: d97c78a1908e ("usb: dwc3: gadget: END_TRANSFER before CLEAR_STALL command") Signed-off-by: Thinh Nguyen <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'drivers/pci/controller/vmd.c')
0 files changed, 0 insertions, 0 deletions