]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdns3: gadget: calculate TD_SIZE based on TD
authorPeter Chen <peter.chen@nxp.com>
Tue, 3 Nov 2020 14:16:00 +0000 (22:16 +0800)
committerPeter Chen <peter.chen@nxp.com>
Mon, 16 Nov 2020 07:08:52 +0000 (15:08 +0800)
commitd6d55838dd48b6f34a4c729388595d8e00ebc9c8
treef0e9c549446dc317d83cedc17380bd137aa44a85
parentd29fe7c0083a45a1881394ea11917dae39495449
usb: cdns3: gadget: calculate TD_SIZE based on TD

The TRB entry TD_SIZE is the packet number for the TD (request) but not the
each TRB, so it only needs to be assigned for the first TRB during the TD,
and the value of it is for TD too.

Fixes: 890954bdc8d0 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/cdns3/gadget.c