usb: cdnsp: fix issue with ZLP - added TD_SIZE = 1
authorPawel Laszczak <pawell@cadence.com>
Tue, 15 Nov 2022 09:22:18 +0000 (04:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Dec 2022 16:41:08 +0000 (17:41 +0100)
commitc9d133100bce4e46a819b60d5fd4258ee8d9601f
treed8cec180a0518173456e13a34dd42be794420685
parentc2ad434cd4b2f53c54774ae83ea7a5d49f5e8c49
usb: cdnsp: fix issue with ZLP - added TD_SIZE = 1

commit 7a21b27aafa3edead79ed97e6f22236be6b9f447 upstream.

Patch modifies the TD_SIZE in TRB before ZLP TRB.
The TD_SIZE in TRB before ZLP TRB must be set to 1 to force
processing ZLP TRB by controller.

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