• P
    usb: dwc3: ep0: correct cache sync issue in case of ep0_bounced · 0416e494
    Pratyush Anand 提交于
    In case of ep0 out, if length is not aligned to maxpacket size then we use
    dwc->ep_bounce_addr for dma transfer and not request->dma. Since, we have
    alreday done memcpy from dwc->ep0_bounce to request->buf, so we do not need to
    issue cache sync function. In fact, cache sync function will bring wrong data
    in request->buf from request->dma in this scenario.
    
    So, cache sync function must not be executed in case of ep0 bounced.
    
    Cc: <stable@vger.kernel.org> # v3.4 v3.5
    Signed-off-by: NPratyush Anand <pratyush.anand@st.com>
    Signed-off-by: NFelipe Balbi <balbi@ti.com>
    0416e494
gadget.c 61.5 KB