* [PATCH 1/1] arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed
@ 2023-04-13 15:50 Frank Li
2023-05-08 13:51 ` [EXT] " Frank Li
2023-05-13 3:46 ` Shawn Guo
0 siblings, 2 replies; 4+ messages in thread
From: Frank Li @ 2023-04-13 15:50 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Shawn Guo, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Peter Chen, Greg Kroah-Hartman,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
open list
Cc: pawell, imx
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.
Fixes: dce49449e04ff ("usb: cdns3: allocate TX FIFO size according to composite EP number")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
index b32c2e199c160..030c273c8be40 100644
--- a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
@@ -171,6 +171,7 @@ usbotg3_cdns3: usb@5b120000 {
interrupt-names = "host", "peripheral", "otg", "wakeup";
phys = <&usb3_phy>;
phy-names = "cdns3,usb3-phy";
+ cdns,on-chip-buff-size = /bits/ 16 <18>;
status = "disabled";
};
};
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [EXT] [PATCH 1/1] arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed
2023-04-13 15:50 [PATCH 1/1] arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed Frank Li
@ 2023-05-08 13:51 ` Frank Li
2023-05-13 3:46 ` Shawn Guo
1 sibling, 0 replies; 4+ messages in thread
From: Frank Li @ 2023-05-08 13:51 UTC (permalink / raw)
To: Frank Li, Rob Herring, Krzysztof Kozlowski, Shawn Guo,
Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
dl-linux-imx, Peter Chen, Greg Kroah-Hartman,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
open list
Cc: pawell@cadence.com, imx@lists.linux.dev
>
> Caution: EXT Email
>
> 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.
>
> Fixes: dce49449e04ff ("usb: cdns3: allocate TX FIFO size according to
> composite EP number")
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
Shawn:
Ping, it is important fixes for 8qm.
> arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> index b32c2e199c160..030c273c8be40 100644
> --- a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> @@ -171,6 +171,7 @@ usbotg3_cdns3: usb@5b120000 {
> interrupt-names = "host", "peripheral", "otg", "wakeup";
> phys = <&usb3_phy>;
> phy-names = "cdns3,usb3-phy";
> + cdns,on-chip-buff-size = /bits/ 16 <18>;
> status = "disabled";
> };
> };
> --
> 2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed
2023-04-13 15:50 [PATCH 1/1] arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed Frank Li
2023-05-08 13:51 ` [EXT] " Frank Li
@ 2023-05-13 3:46 ` Shawn Guo
2023-05-13 4:23 ` [EXT] " Frank Li
1 sibling, 1 reply; 4+ messages in thread
From: Shawn Guo @ 2023-05-13 3:46 UTC (permalink / raw)
To: Frank Li
Cc: Rob Herring, Krzysztof Kozlowski, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
Peter Chen, Greg Kroah-Hartman,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
open list, pawell, imx
On Thu, Apr 13, 2023 at 11:50:43AM -0400, Frank Li wrote:
> 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.
>
> Fixes: dce49449e04ff ("usb: cdns3: allocate TX FIFO size according to composite EP number")
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
There are a couple of check patch warnings on commit log.
WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#7:
Resolve USB 3.0 gadget failure for QM and QXPB0 in super speed mode with single
WARNING: Please use correct Fixes: style 'Fixes: <12 chars of sha1> ("<title line>")' - ie: 'Fixes: dce49449e04f ("usb: cdns3: allocate TX FIFO size according to composite EP number")'
#13:
Fixes: dce49449e04ff ("usb: cdns3: allocate TX FIFO size according to composite EP number")
> ---
> arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> index b32c2e199c160..030c273c8be40 100644
> --- a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> @@ -171,6 +171,7 @@ usbotg3_cdns3: usb@5b120000 {
> interrupt-names = "host", "peripheral", "otg", "wakeup";
> phys = <&usb3_phy>;
> phy-names = "cdns3,usb3-phy";
> + cdns,on-chip-buff-size = /bits/ 16 <18>;
The property is defined as uint32 in the bindings. Not sure why we
need to enforce 16-bits here.
Shawn
> status = "disabled";
> };
> };
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [EXT] Re: [PATCH 1/1] arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed
2023-05-13 3:46 ` Shawn Guo
@ 2023-05-13 4:23 ` Frank Li
0 siblings, 0 replies; 4+ messages in thread
From: Frank Li @ 2023-05-13 4:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Rob Herring, Krzysztof Kozlowski, Sascha Hauer,
Pengutronix Kernel Team, Fabio Estevam, dl-linux-imx, Peter Chen,
Greg Kroah-Hartman,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
open list, pawell@cadence.com, imx@lists.linux.dev
>
> > ---
> > arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> > index b32c2e199c160..030c273c8be40 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
> > @@ -171,6 +171,7 @@ usbotg3_cdns3: usb@5b120000 {
> > interrupt-names = "host", "peripheral", "otg", "wakeup";
> > phys = <&usb3_phy>;
> > phy-names = "cdns3,usb3-phy";
> > + cdns,on-chip-buff-size = /bits/ 16 <18>;
>
> The property is defined as uint32 in the bindings. Not sure why we
> need to enforce 16-bits here.
Driver code use 16bit, if use 32bit here, it will be zero.
I have not checked bindings doc. Next version will fix binding doc.
Frank
>
> Shawn
>
> > status = "disabled";
> > };
> > };
> > --
> > 2.34.1
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-05-13 4:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-13 15:50 [PATCH 1/1] arm64: dts: imx8: fix USB 3.0 Gadget Failure in QM & QXPB0 at super speed Frank Li
2023-05-08 13:51 ` [EXT] " Frank Li
2023-05-13 3:46 ` Shawn Guo
2023-05-13 4:23 ` [EXT] " Frank Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).