From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795944496; b=lS8wigF9NjLQsGc2iVLx3raEGmE0o3kfXsvc3C9M16KERnTvxzLHShMEsqpptYyjYJ8U RkaXgit/nTzzqB992ky44SyJwNhJ7/yytMqlTTEPmFWlWzCaVu6PCJ/Ri5P1ygpua6aL5 5k6xTHJpzHfpnybiHG1cUUVFa0eCM6ujCQcKGhKiKyn7bsrXNgwnu03VwOeNbKx8zYmR3 zw6R9eALAsNtEjIEu1xFcJluSbbI2zg6rLAUxmyCfFx+qKpX9CtNloMGFeZrU3xMEK/4H 6DkZxn7lFqZsGRR6DC4yOn09QjX1HMrji4YXMD0i83d0kOev+6dkWdIfEhKhNHAtTwQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795944496; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=xWWDOKwjwPvqtSv0ajLiTTO0FJTx2jDQoDaGg8bKVEw=; b=16xs6KVef76s6ov+AE9+7mlG2LyGQSUHazWwauIYlYy8VqdUxlT5fKkQ2yA4zGQ9CXFR go8pCzXlBjODd7wEsqCb1viI/bSaaRWTfeDao2ZpA+5p5go8EjaVsVyEKE0Wk9aSFb+os DJO470tfn0HpDg7f+zU3aARuljjoxALAwGrwDcQdYlJpMJomM7J7UCh+2wIDi9ELqz1OW QSHSHdd4/+XqswvrxQMqICaQ7PGuzbAkxu0Z5upRw65/9bgs/b2potebUTquUjHvr/ZG7 b1gDljhxLLs8Vau6q8t5eKA/bWieayZvRGOwiUseHwqZ57HA+F7ByXO1NmpBwuhkMHw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.remote-ip=209.85.128.51 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A44B606A6A3 for ; Sun, 29 Nov 2026 09:28:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3A44B606A6A3 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4bb606491faso49285675e9.3 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=Oq3ARoZFYmpH+KE0FR3L++Soi5S4yoqPavqnoAldRmsgJ/BO85Jn9nptgZaGClnryq iBK1uIwXhcOQnmvM1dzUGBg35KFJHfvWxRxhKxdlRsCcjEm/lnAxVEF30JiWBXvx7ZrT BylhlvkqXombX38snwyvq8Ugb+gn1Ah/ZTlUSj7NSSFQS+c5wb2dO0SFMYuSGPN6kMyy /c++DQcNTyA0goW5wEZ71kKVAwp7dPrwPx+t1tvbVVRUbXDXMbK9IpmBOYBjdMCjzAKK neDKCJOweXjgxx/oduyZPx3FpVZ/1mWwAYgXlXkyNSl8vlWg7wBnYFzeCwMB46cAObdK EBtw== X-Forwarded-Encrypted: i=1; AL+hErEI75EMQI+mYTMqNl0lacX5Kdpj2Qe3sQWdCKMoi3PqGRgmVwAemqw/xHUfcoGl1iluh+Zmg6LLpDEw@vger.kernel.org X-Gm-Message-State: APuU4Z/JHTSJeJS2TWIL/lMWGdRNbg3rOasTX/6doczVecBV0jnhstjf YENdb1FeJ9BcLTvThJIqtMYUeRZm+ZEJ6ArmcmpQ4YYZYvSv209Z4Tim X-Gm-Gg: AZFdTZdQFw5oqPY6IXCXCcGAQ4CG2yB6AGZs73H8Vdh9/6JdaRpjVCHEK5TAjSUy7HU TA/eGFySmGlJlFXHRkRB5p3ippMiZQmQVVQ3rS+MwqDHxFAQqzLNj4dOrdWM0tRKYqizjCA36eA j4jGUYh3h3Cu4g58M/iTPRe8/bks/mgp28UvvDv1pUxOD3/bRGiRru67NflOWiUIaewZnNUgx7e 9lj+oD0urF/MluJjyjDtG2Nuojtg3QU2YH94RL/lj+A5uzYaR9MQq4TSRb4RIyuQRNg779hP+A/ tjc9RoXAFShXN0vp6Nlkd/hgs6KmFdBi9c3vPog1GISVjL3WrK92sSdHhomCsj4129MUI1BV+bV JAjqaUxaLXBUwp86iTVNmDUjo5KutQ2sGufaADh3c616PtHSoa43mNkIVU459xKElSfx86kEk4G Sxze8MbIzcnYG8/DAr5HsfCUTiA6k5GhP2fc1APBvP7qtLX8mCF3JM2HKFU6cQ19C+2j/EM366v 0Se8p4YNs5ytonaG9ZMj+mq8h57+DzHKZQ9i05LPlXATJp1DHJGbpJOZg0VbPZgyDSykpbxqhoV kOrXax3ZWyUL8em2QEkRHQcwpd/9Ofs/zSUExmnWKDGQhCOGR48URcTrjAg/ZNgEKTXYO5S2NGc +XGTb5oyyCgM/3pbw3rweiB/2 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-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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