summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@nxp.com>2023-12-24 18:38:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-26 02:35:43 +0300
commit2e56239b8e1d74d30a280b7792c0aa7d79fcc2a5 (patch)
treee32b812f388ec2c539e646616623bd6a06cb9b6b /Kbuild
parent0153e32b3cc1a60e1a573a9e230fcac7b04c59a7 (diff)
downloadlinux-2e56239b8e1d74d30a280b7792c0aa7d79fcc2a5.tar.xz
usb: cdns3: fix iso transfer error when mult is not zero
commit 92f02efa1d86d7dcaef7f38a5fe3396c4e88a93c upstream. ISO basic transfer is ITP(SOF) Package_0 Package_1 ... Package_n CDNS3 DMA start dma transfer from memmory to internal FIFO when get SOF, controller will transfer data to usb bus from internal FIFO when get IN token. According USB spec defination: Maximum number of packets = (bMaxBurst + 1) * (Mult + 1) Internal memory should be the same as (bMaxBurst + 1) * (Mult + 1). DMA don't fetch data advance when ISO transfer, so only reserve (bMaxBurst + 1) * (Mult + 1) internal memory for ISO transfer. Need save Mult and bMaxBurst information and set it into EP_CFG register, otherwise only 1 package is sent by controller, other package will be lost. Cc: <stable@vger.kernel.org> Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") Signed-off-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20231224153816.1664687-3-Frank.Li@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions