]> git.itanic.dy.fi Git - linux-stable/commit
usb: cdns3: Enable TDL_CHK only for OUT ep
authorSanket Parmar <sparmar@cadence.com>
Mon, 17 May 2021 15:05:12 +0000 (17:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jul 2021 12:35:13 +0000 (14:35 +0200)
commitf53729b828db74e61e5df5b4874e319f875c5fa3
tree3b504189877797a545484b33af42a2c324f99520
parent52b01a808696836d5d3382cd4ec6816e65f2ecc5
usb: cdns3: Enable TDL_CHK only for OUT ep

commit d6eef886903c4bb5af41b9a31d4ba11dc7a6f8e8 upstream.

ZLP gets stuck if TDL_CHK bit is set and TDL_FROM_TRB is used
as TDL source for IN endpoints. To fix it, TDL_CHK is only
enabled for OUT endpoints.

Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Reported-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Sanket Parmar <sparmar@cadence.com>
Link: https://lore.kernel.org/r/1621263912-13175-1-git-send-email-sparmar@cadence.com
Signed-off-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/gadget.c