* [PATCH] usb: dwc3: support USB 3.1 controllers
@ 2024-04-11 16:05 Caleb Connolly
2024-04-12 8:34 ` neil.armstrong
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Caleb Connolly @ 2024-04-11 16:05 UTC (permalink / raw)
To: Caleb Connolly, Igor Prusov, Marek Vasut, Mattijs Korpershoek,
Nishanth Menon, Tom Rini
Cc: Marek Vasut, Patrice Chotard, u-boot
The revision is different for these, add the additional check as in
xhci-dwc3 core_init code.
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
---
drivers/usb/dwc3/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 96e850b7170f..db045f5822d4 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -594,9 +594,10 @@ static int dwc3_core_init(struct dwc3 *dwc)
int ret;
reg = dwc3_readl(dwc->regs, DWC3_GSNPSID);
/* This should read as U3 followed by revision number */
- if ((reg & DWC3_GSNPSID_MASK) != 0x55330000) {
+ if ((reg & DWC3_GSNPSID_MASK) != 0x55330000 &&
+ (reg & DWC3_GSNPSID_MASK) != 0x33310000) {
dev_err(dwc->dev, "this is not a DesignWare USB3 DRD Core\n");
ret = -ENODEV;
goto err0;
}
--
2.44.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] usb: dwc3: support USB 3.1 controllers
2024-04-11 16:05 [PATCH] usb: dwc3: support USB 3.1 controllers Caleb Connolly
@ 2024-04-12 8:34 ` neil.armstrong
2024-04-16 9:56 ` Mattijs Korpershoek
2024-04-21 20:38 ` Marek Vasut
2 siblings, 0 replies; 6+ messages in thread
From: neil.armstrong @ 2024-04-12 8:34 UTC (permalink / raw)
To: Caleb Connolly, Igor Prusov, Marek Vasut, Mattijs Korpershoek,
Nishanth Menon, Tom Rini
Cc: Marek Vasut, Patrice Chotard, u-boot
On 11/04/2024 18:05, Caleb Connolly wrote:
> The revision is different for these, add the additional check as in
> xhci-dwc3 core_init code.
>
> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
> ---
> drivers/usb/dwc3/core.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
> index 96e850b7170f..db045f5822d4 100644
> --- a/drivers/usb/dwc3/core.c
> +++ b/drivers/usb/dwc3/core.c
> @@ -594,9 +594,10 @@ static int dwc3_core_init(struct dwc3 *dwc)
> int ret;
>
> reg = dwc3_readl(dwc->regs, DWC3_GSNPSID);
> /* This should read as U3 followed by revision number */
> - if ((reg & DWC3_GSNPSID_MASK) != 0x55330000) {
> + if ((reg & DWC3_GSNPSID_MASK) != 0x55330000 &&
> + (reg & DWC3_GSNPSID_MASK) != 0x33310000) {
> dev_err(dwc->dev, "this is not a DesignWare USB3 DRD Core\n");
> ret = -ENODEV;
> goto err0;
> }
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8550
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] usb: dwc3: support USB 3.1 controllers
2024-04-11 16:05 [PATCH] usb: dwc3: support USB 3.1 controllers Caleb Connolly
2024-04-12 8:34 ` neil.armstrong
@ 2024-04-16 9:56 ` Mattijs Korpershoek
2024-04-21 20:38 ` Marek Vasut
2 siblings, 0 replies; 6+ messages in thread
From: Mattijs Korpershoek @ 2024-04-16 9:56 UTC (permalink / raw)
To: Caleb Connolly, Caleb Connolly, Igor Prusov, Marek Vasut,
Nishanth Menon, Tom Rini
Cc: Marek Vasut, Patrice Chotard, u-boot
Hi Caleb,;
Thank you for the patch.
On jeu., avril 11, 2024 at 18:05, Caleb Connolly <caleb.connolly@linaro.org> wrote:
> The revision is different for these, add the additional check as in
> xhci-dwc3 core_init code.
>
> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
> ---
> drivers/usb/dwc3/core.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
> index 96e850b7170f..db045f5822d4 100644
> --- a/drivers/usb/dwc3/core.c
> +++ b/drivers/usb/dwc3/core.c
> @@ -594,9 +594,10 @@ static int dwc3_core_init(struct dwc3 *dwc)
> int ret;
>
> reg = dwc3_readl(dwc->regs, DWC3_GSNPSID);
> /* This should read as U3 followed by revision number */
> - if ((reg & DWC3_GSNPSID_MASK) != 0x55330000) {
> + if ((reg & DWC3_GSNPSID_MASK) != 0x55330000 &&
> + (reg & DWC3_GSNPSID_MASK) != 0x33310000) {
> dev_err(dwc->dev, "this is not a DesignWare USB3 DRD Core\n");
> ret = -ENODEV;
> goto err0;
> }
> --
> 2.44.0
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] usb: dwc3: support USB 3.1 controllers
2024-04-11 16:05 [PATCH] usb: dwc3: support USB 3.1 controllers Caleb Connolly
2024-04-12 8:34 ` neil.armstrong
2024-04-16 9:56 ` Mattijs Korpershoek
@ 2024-04-21 20:38 ` Marek Vasut
2024-04-22 10:53 ` Caleb Connolly
2 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2024-04-21 20:38 UTC (permalink / raw)
To: Caleb Connolly, Igor Prusov, Mattijs Korpershoek, Nishanth Menon,
Tom Rini
Cc: Marek Vasut, Patrice Chotard, u-boot
On 4/11/24 6:05 PM, Caleb Connolly wrote:
> The revision is different for these, add the additional check as in
> xhci-dwc3 core_init code.
>
> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Is there a matching Linux kernel patch , or does Linux do some other check ?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] usb: dwc3: support USB 3.1 controllers
2024-04-21 20:38 ` Marek Vasut
@ 2024-04-22 10:53 ` Caleb Connolly
2024-04-23 0:50 ` Marek Vasut
0 siblings, 1 reply; 6+ messages in thread
From: Caleb Connolly @ 2024-04-22 10:53 UTC (permalink / raw)
To: Marek Vasut, Igor Prusov, Mattijs Korpershoek, Nishanth Menon,
Tom Rini
Cc: Marek Vasut, Patrice Chotard, u-boot
On 21/04/2024 22:38, Marek Vasut wrote:
> On 4/11/24 6:05 PM, Caleb Connolly wrote:
>> The revision is different for these, add the additional check as in
>> xhci-dwc3 core_init code.
>>
>> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
>
> Is there a matching Linux kernel patch , or does Linux do some other
> check ?
I just took this change from the xhci-dwc3 driver tbh... But I did some
archeology and it seems the associated Linux patch would be 690fb3718a70
("usb: dwc3: Support Synopsys USB 3.1 IP").
--
// Caleb (they/them)
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] usb: dwc3: support USB 3.1 controllers
2024-04-22 10:53 ` Caleb Connolly
@ 2024-04-23 0:50 ` Marek Vasut
0 siblings, 0 replies; 6+ messages in thread
From: Marek Vasut @ 2024-04-23 0:50 UTC (permalink / raw)
To: Caleb Connolly, Igor Prusov, Mattijs Korpershoek, Nishanth Menon,
Tom Rini
Cc: Marek Vasut, Patrice Chotard, u-boot
On 4/22/24 12:53 PM, Caleb Connolly wrote:
>
> On 21/04/2024 22:38, Marek Vasut wrote:
>> On 4/11/24 6:05 PM, Caleb Connolly wrote:
>>> The revision is different for these, add the additional check as in
>>> xhci-dwc3 core_init code.
>>>
>>> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
>>
>> Is there a matching Linux kernel patch , or does Linux do some other
>> check ?
>
> I just took this change from the xhci-dwc3 driver tbh... But I did some
> archeology and it seems the associated Linux patch would be 690fb3718a70
> ("usb: dwc3: Support Synopsys USB 3.1 IP").
Can you please mention it in the commit message, and send a V2 with my:
Reviewed-by: Marek Vasut <marex@denx.de>
Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-04-23 2:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-11 16:05 [PATCH] usb: dwc3: support USB 3.1 controllers Caleb Connolly
2024-04-12 8:34 ` neil.armstrong
2024-04-16 9:56 ` Mattijs Korpershoek
2024-04-21 20:38 ` Marek Vasut
2024-04-22 10:53 ` Caleb Connolly
2024-04-23 0:50 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox