From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4657F606A31C for ; Sun, 29 Nov 2026 09:29:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Ss5je+o/ DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=xWWDOKwjwPvqtSv0ajLiTTO0FJTx2jDQoDaGg8bKVEw=; b=Ss5je+o//8910s iXUcf7jmKsT6SXmADUAIpQDQxbX2V9AVYSmaVabooN0AdrtMS91Za90+mHnhEc0YPKQ92Zj/xEZVh fWL3MhX6Slelt6sIUuamRBzer5DMXA8SVQ4VeqoG2fAQlTEmmzIOJ5aFnz6h4OhSfC/22ArNdcZGP FkaaoRLJBdZrHufMl6n/Y4rkAwg8bo+pOEKLCURv/gMSCwNfJLRcuqSEYjhE7VxogWw1S8pXWILVB AoeVujf9pXO3XYve3lCAvv3GwJawbTAOgHMRkb2ihSjysDiFWw/cFHJat+OiN0yIX40Pd2/EQrdMm t8CAbwT9UTQvt2W4i+GA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbDE-00000001k5A-1BrP; Sun, 29 Nov 2026 09:28:49 +0000 Received: from mail-wr1-f46.google.com ([209.85.221.46]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXbCi-00000001jdE-2wsP for linux-arm-kernel@lists.infradead.org; Sun, 29 Nov 2026 09:28:19 +0000 Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-4a358881793so4949650f8f.0 for ; Sun, 29 Nov 2026 01:28:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795944495; x=1796549295; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=xWWDOKwjwPvqtSv0ajLiTTO0FJTx2jDQoDaGg8bKVEw=; b=dvozUsEVTeBqRXn1IiA6fDUTDarCOUsYY+OcIE2CY6XxeucaPIgo3YoslW/NMFwH2H EK+tWF3WaRgDJ3M+MKOzuMhzpTlxxo83MO2POUgxq7AACS0SFSCcNuMCgEhw+0ksgGu3 KyHCi3qSU79Ds8+BXzBS5Uy4bKYbXpKXRN9pToLw9bF5u5zb70siZfuSyxaP3Fo21Q7L EVvH/0pOlGuvUKKLH0djCKmEMVANP5XUS0B2rmW/qkKEPsgcJQp9KzCyp47a1iC+ixfA efkf3F6npHdC3wqo8GILZeOzWmPTW1xCiZmcU6e/yT69GcHvr71U+rxF6dUXT9oJPOaX gJ0g== X-Forwarded-Encrypted: i=1; AL+hErHyziuxwmO/zt8vMPpesfWdb/mhNEo2fO+rZu6ZkgpiW4dZDk6mEPIL3KKRruhCDfbx6oDtr0sxZxUuelqvAp/k@lists.infradead.org X-Gm-Message-State: APuU4Z97J1hstZKvBqYZe6V7Su7n4MAaXLEbi+6s1QjmUSObw9xL0ZoH 0dq4+yiBhBrruZDy9Xmie0RtihfAGkypX4FMIarA+a1Y4Miz7QKobAkr X-Gm-Gg: AZFdTZcWiU3pBYeIGpJ2IQVApG1eD6+Yx+kVNMDIMnvq6cgGSRZR/Knb6VFlpGAk9lF RfW9qIQsDc2TzE0WsoonQAjkzd0y7h0lCUruYXfyluNWP4UXvPLzaEP8FL5/9HuBmIPpJuUt+7S hMy1GK443prGY7Ql0iEk9KgHvYSdEZappvMsnKAmskmKcap5/vE6ilnOXzQB4uD7sLTmdZ+Y95p 05DmXC2Sul+PX9X44dy4LhFRrRL/O9Od42bYodhQ7/0mtsTxZpgCiThM+p1yP4ItDpNWIlipndJ +eZLxBZYSxbvzVRWw8JviotaDzqxmr0ZMgpBj/AmfscBTta+BygHk9GIMCn4hP+rYs9Xz7Yi7yJ SEHz2NGXIeUy0m7jdRERNgelDmMImlBjEWxz/1/Y/rNJLwTUoyR9o8xB3C1ynXG/UYW18AhQqvw wi2cnvVOKZKaPVyhhNjVt8nlq+eHZcp2P1BhVs2NLb1sW+5pqo5Hcm1GnzvdDKKUcUOZvkeEj2z gIrDVeAUm5mYF9PJhXGI8AjhVHxT/xZgAhyYpvEz8kVJfy7Ijz9ZLiP3AbqjSoDeSU4SnLvymjg FzSSERnZNPjTutBQQcc0vj2SrYbh3c8bdq+l30VB3P35GQozpQj9AGDhvFBO2R4mWXMvC5hV+/Z 7iJvCf2fMvZulgMreV5nAvRzE X-Received: by 2002:a05:600c:530f:b0:4a2:677:ad8e with SMTP id 5b1f17b1804b1-4bb8892a21amr551581225e9.34.1795944494648; Sun, 29 Nov 2026 01:28:14 -0800 (PST) Received: from threads.localdomain ([84.68.176.78]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf61e8sm60210765f8f.11.2026.11.29.01.28.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 01:28:14 -0800 (PST) From: Lucas Tanure To: Neil Armstrong , Kevin Hilman , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Mathias Nyman Cc: Jerome Brunet , Martin Blumenstingl , Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/9] usb: host: xhci-plat: add Amlogic T7 support Date: Sun, 29 Nov 2026 09:28:05 +0000 Message-ID: <20261129092810.146043-5-tanure@linux.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261129092810.146043-1-tanure@linux.com> References: <20261129092810.146043-1-tanure@linux.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261129_012816_880092_38F960AD X-CRM114-Status: GOOD ( 12.09 ) X-Spam-Score: -0.8 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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 --- 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