[PATCH 4/9] usb: host: xhci-plat: add Amlogic T7 support

Lucas Tanure tanure at linux.com
Sun Nov 29 01:28:05 PST 2026


The USB controller of the Amlogic T7 reports 64-bit addressing but uses
only the lower 32 bits of each address. On a board with more than 4GB
of RAM the command and event rings can be placed above 4GB. The
controller then reads from the wrong place and never answers. A plugged
device is not detected, and the only message is "Error while assigning
device slot ID: Command Aborted".

Only the host role of the controller is supported.

Signed-off-by: Lucas Tanure <tanure at linux.com>
---
 drivers/usb/host/xhci-plat.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 6fd595f81a30..327b0ea389e7 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -120,6 +120,10 @@ static const struct xhci_plat_priv xhci_plat_marvell_armada3700 = {
 	.quirks = XHCI_RESET_ON_RESUME,
 };
 
+static const struct xhci_plat_priv xhci_plat_amlogic_t7 = {
+	.quirks = XHCI_NO_64BIT_SUPPORT,
+};
+
 static const struct xhci_plat_priv xhci_plat_brcm = {
 	.quirks = XHCI_RESET_ON_RESUME | XHCI_SUSPEND_RESUME_CLKS,
 };
@@ -147,6 +151,9 @@ static const struct of_device_id usb_xhci_of_match[] = {
 	}, {
 		.compatible = "brcm,bcm7445-xhci",
 		.data = &xhci_plat_brcm,
+	}, {
+		.compatible = "amlogic,t7-usb",
+		.data = &xhci_plat_amlogic_t7,
 	},
 	{},
 };
-- 
2.56.1




More information about the linux-arm-kernel mailing list