Home
last modified time | relevance | path

Searched hist:"7484 d84cbb58e01ff1d2d458d899ea1fba012724" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dci_udc.c7484d84cbb58e01ff1d2d458d899ea1fba012724 Thu May 29 20:53:00 UTC 2014 Stephen Warren <swarren@nvidia.com> usb: ci_udc: detect queued requests on ep0

The flipping of ep0 between IN and OUT relies on ci_ep_queue() consuming
the current IN/OUT setting immediately. If this is deferred to a later
point when the req is pulled out of ci_req->queue, then the IN/OUT
setting may have been changed since the req was queued, and state will
get out of sync. This condition doesn't occur today, but could if bugs
were introduced later, and this error-check will save a lot of debugging
time.

Signed-off-by: Stephen Warren <swarren@nvidia.com>