Commit 58f29034 authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: gadget: CSP is only valid for OUT endpoints

CSP bit is only valid for OUT endpoints. Synopsys
databook is unclear if HW ignores CSP for IN
endpoints (chances are, it does) but to avoid
problems, let's make sure to set CSP only when valid
to do so.
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent b9bd138e
...@@ -875,6 +875,7 @@ static void dwc3_prepare_one_trb(struct dwc3_ep *dep, ...@@ -875,6 +875,7 @@ static void dwc3_prepare_one_trb(struct dwc3_ep *dep,
} }
/* always enable Continue on Short Packet */ /* always enable Continue on Short Packet */
if (usb_endpoint_dir_out(dep->endpoint.desc))
trb->ctrl |= DWC3_TRB_CTRL_CSP; trb->ctrl |= DWC3_TRB_CTRL_CSP;
if ((!req->request.no_interrupt && !chain) || if ((!req->request.no_interrupt && !chain) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment