aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/core.c
diff options
context:
space:
mode:
authorPeter Chen <[email protected]>2020-11-25 12:35:23 +0000
committerPeter Chen <[email protected]>2020-11-30 05:48:32 +0000
commit24fdaeeb294c14ea743ec99ada92380c060a428a (patch)
treea22f399405c2f51b62be853e78bdc9e9eb8a4391 /drivers/usb/cdns3/core.c
parentusb: cdns3: Fix hardware based role switch (diff)
downloadkernel-24fdaeeb294c14ea743ec99ada92380c060a428a.tar.gz
kernel-24fdaeeb294c14ea743ec99ada92380c060a428a.zip
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: abc6b579048e ("usb: cdns3: gadget: using correct sg operations") Signed-off-by: Peter Chen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
0 files changed, 0 insertions, 0 deletions