Skip to content
Unverified Commit 24fdaeeb authored by Peter Chen's avatar Peter Chen
Browse files

usb: cdns3: gadget: clear trb->length as zero after preparing every trb



It clears trb->length as zero before preparing td, but if scatter
buffer is used for td, there are several trbs within td, it needs to clear
every trb->length as zero, otherwise, the default value for trb->length
may not be zero after it begins to use the second round of trb rings.

Fixes: abc6b579 ("usb: cdns3: gadget: using correct sg operations")
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
parent 6703052f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment