]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdnsp: fix lack of ZLP for ep0
authorPawel Laszczak <pawell@cadence.com>
Tue, 22 Nov 2022 08:51:38 +0000 (03:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:33:09 +0000 (13:33 +0100)
commit2d12a4cf6e2000b38d637898b842efb96c59436f
tree4ee0d0bc279cf2ace9081a0445e1ae26f25ea4b1
parent5c1b2a29ecb656c99e0101e3549fabaece8322ef
usb: cdnsp: fix lack of ZLP for ep0

commit ae423ef5d095e09970f52c08020fdbf7f9d87c22 upstream.

Patch implements the handling of ZLP for control transfer.
To send the ZLP driver must prepare the extra TRB in TD with
length set to zero and TRB type to TRB_NORMAL.
The first TRB must have set TRB_CHAIN flag, TD_SIZE = 1
and TRB type to TRB_DATA.

Fixes: cdacaf0d5af1 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
cc: <stable@vger.kernel.org>
Reviewed-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20221122085138.332434-1-pawell@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdnsp-ring.c