commit | 3336abb5b608300550136ddab7a7101b30d45fa7 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <balbi@ti.com> | Wed Jun 06 09:19:35 2012 +0300 |
committer | Felipe Balbi <balbi@ti.com> | Wed Jun 06 11:22:32 2012 +0300 |
tree | e3f32bae199ed50cc5a8cca8c5cc313b8e52e739 | |
parent | 1e2360eadaa33c09bb72afb14f74b6c6ab2aca66 [diff] |
usb: dwc3: gadget: ignore endpoint IRQs when endpoint is disabled By the time we're disabling the endpoint, HW could already have posted more events to our event buffer. In that case, we will receive endpoint events for a disabled endpoint. In order to protect ourselves from that situation, we simply ignore endpoint interrupts whenever the endpoint is disabled. Tested-by: Pratyush Anand <pratyush.anand@st.com> Signed-off-by: Felipe Balbi <balbi@ti.com>