arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed
authorFrank Li <Frank.Li@nxp.com>
Mon, 15 May 2023 16:20:53 +0000 (12:20 -0400)
committerShawn Guo <shawnguo@kernel.org>
Tue, 16 May 2023 12:43:48 +0000 (20:43 +0800)
commit0f554e37dad416f445cd3ec5935f5aec1b0e7ba5
treebb969e740046f6cf99b9ca245221f2723c821420
parent50a1726b148ff30778cb8a6cf3736130b07c93fd
arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed

Resolve USB 3.0 gadget failure for QM and QXPB0 in super speed mode with
single IN and OUT endpoints, like mass storage devices, due to incorrect
ACTUAL_MEM_SIZE in ep_cap2 (32k instead of actual 18k). Implement dt
property cdns,on-chip-buff-size to override ep_cap2 and set it to 18k for
imx8QM and imx8QXP chips. No adverse effects for 8QXP C0.

Cc: stable@vger.kernel.org
Fixes: dce49449e04f ("usb: cdns3: allocate TX FIFO size according to composite EP number")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi