Skip to contentSkip to conversation

usb: xhci-dwc3: Add support for USB 3.1 controllers

PATCH In review Mark Kettenis 3 participants 5 messages Sep 16, 2021 – Sep 20, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: xhci-dwc3: Add support for USB 3.1 controllers

This adds support for the DWC_sub31 controllers such as those found on Apple's M1 SoC. This version of the controller seems to work fine with the existing driver.

---
 drivers/usb/host/xhci-dwc3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/usb/host/xhci-dwc3.c +2 -1
index 3e0ae80cec..a2ea40bae0 100644
@@ -70,7 +70,8 @@ int dwc3_core_init(struct dwc3 *dwc3_reg)
 
 	revision = readl(&dwc3_reg->g_snpsid);
 	/* This should read as U3 followed by revision number */
-	if ((revision & DWC3_GSNPSID_MASK) != 0x55330000) {
+	if ((revision & DWC3_GSNPSID_MASK) != 0x55330000 &&
+	    (revision & DWC3_GSNPSID_MASK) != 0x33310000) {
 		puts("this is not a DesignWare USB3 DRD Core\n");
 		return -1;
 	}
Signature · 1 line
2.33.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Mark Kettenis

This adds support for the DWC_sub31 controllers such as those found on Apple's M1 SoC. This version of the controller seems to work fine with the existing driver.

---
 drivers/usb/host/xhci-dwc3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
#2 lore raw

Hi Marek,

Quoted 7 lines · Bin Meng
Quoted 5 lines · Mark Kettenis

This adds support for the DWC_sub31 controllers such as those found on Apple's M1 SoC. This version of the controller seems to work fine with the existing driver.

Quoted 7 lines
Quoted 5 lines
---
 drivers/usb/host/xhci-dwc3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

I see this is assigned to me on patchwork. Would you like this to go via the x86 tree?

Regards,
Bin

#3 lore raw
Quoted 16 lines · Bin Meng

Hi Marek,

Quoted 13 lines · Bin Meng
Quoted 10 lines · Mark Kettenis

This adds support for the DWC_sub31 controllers such as those found on Apple's M1 SoC. This version of the controller seems to work fine with the existing driver.

---
  drivers/usb/host/xhci-dwc3.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 4 lines
Quoted 1 line

I see this is assigned to me on patchwork. Would you like this to go via the x86 tree?

Since it's just one patch, I suspect Tom can just pick it directly.

#4 lore raw
Quoted 18 lines · Marek Vasut
Quoted 16 lines · Bin Meng

Hi Marek,

Quoted 13 lines · Bin Meng
Quoted 10 lines · Mark Kettenis

This adds support for the DWC_sub31 controllers such as those found on Apple's M1 SoC. This version of the controller seems to work fine with the existing driver.

---
  drivers/usb/host/xhci-dwc3.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

I see this is assigned to me on patchwork. Would you like this to go via the x86 tree?

Since it's just one patch, I suspect Tom can just pick it directly.

Thanks, I have re-assigned it to Tom on patchwork.

Regards,
Bin