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=1795944497; b=rXZmaSBLB3j2pX4Pvg8QZsGr9cP5HIOiEdp+SG5GUtnlFBZlbcBbIL754IrJludEKjxq I3k+pPHxbUz8ImONBEJdUGAjkLekyjoMUNuvADFpmPPC2GOqxmu1XMeEc59AN/oVDJVjW 6acPALLcRUjK1GYIR73+07HrUz4w8lVcY/UyEmOPE4bTDW2LNkGFsRPJMCiigUrNSsZcr zuiGM8waIWXsCiKGIY7YbSBc3IdyzMWSEs+AbMrRzs8QSAykqyjVyzC/LwCT6x50F9PB7 ZJ0UroWcaY4CTVjkUWnhMkms645n1M3nubhuF1ot2bumrSCSxy7aw63kp88ykI1eBuA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795944497; 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=SUnyMbTD+JJNzwFepHUU371J2StdqGPxKvbCmZ8Pwdfr7cqVqJ3Z3o6kLCrBoUAGELtO hf0n4ejVjtFkrA2szS14i+4EZsotdW2sCkHir77yd1P6Cuao+Zokr4VSFqTctZszVXIZw GMHJN/mJC3feyipCVlSIt752dX1Yah5wOjTyDuPdaXoWc9zno6TDkB0IftwbUv4onJ3l2 6/2/wF9NETUcJ5yD7aVEaJraXO0vOXoa/AA6ONF3iIZc7ZeVDX2zEW0kx2yswLycllVSJ T2ew3iZKoG63feWMzBfo0zjabuJ6YfswOOG2PfQJTJoJ+aDh+FSGCvEwmPBT1w/rsQg== 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 3A429606A68E for ; Sun, 29 Nov 2026 09:28:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3A429606A68E 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-4a5b2be99a8so74820225e9.2 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=modD1CSm/3FDRToL7jj6QDrO2HSelCV6b1BwbRk3bas54KMfStsTe4CtQIknE/5PTh xttIjzXY6+ZCa5vImaXGMW6eucTkUjekR+UP9PPvXoqlwJB7xXd69icqUMnZ0ektW/PQ rnjjBODA59mhGEIRRLhcnxgmB1bLFV3I4N7GIfUqB9XbyX7+R9legJ+VrR/8R5smloO8 UZecGXYZN+VTFW6pM3yibh0bDlx7VK3VBLaPCGHUbFKK4MBbvFhL9u6PUqD5OsBECg9y WGM+9+itI8+PJq0KRVIcsLxbtFa9V9fgiK3BmWbxkwmZmRAWNB8pOYFISyGJPvbZEV5R kJog== X-Forwarded-Encrypted: i=1; AL+hErHjaJtYl1232mJpiiN5QEz+Lq3cNp6mLjMlI+0nBp7WYZFMCc05moBMGT689u5XMJ0XHLLbm3DAs08=@vger.kernel.org X-Gm-Message-State: APuU4Z9d1YoCwcGOtR305XAvwthcBUUa88s5mssmwPTBACJ121kPQoJg GvkMiSEypjOFWKoa7QrKeamHYY2Rw7j9Ofu344mWulxXmTyoNtQ8iDMy X-Gm-Gg: AZFdTZf0UE7o872h7sGqB4yOSt/B1I6aKgfhJjuKlnA3HTgqZC+MAKokKHYnaMARKmS u692klC2mVIBy81rtDVAHYn72haVQVypVzEX7qllWYcB9yZk94Caq3sPvruETcl9eweVwViVqFn mZWqjcMOg1bZ0UIndH6wh8ut2GPCtTDCtz9yj/RRZEw9J6dF6/4rT3CKNuUCHZMbV6kEYASYRF6 6JmFhIUd3ooyji2HDqNT66HpuBdSKOiDLZ03Bv8E5sFW7LtyNLY4GoFXvCX6jV6c+Qxt3nqHL4N YddKsaJgstJaPjjlvml/oTsYS1oZlizW3aczdE0jch7rNtlfUgmFxAHZfs2PtUJOTUfFUNu+gLU anycRrhD6aaK4EQV2PKqEBoK1r6/x3IjZ7xkmEeQE8OsmY4Ow7iHnGJJM+nE30Sd8xVO12W2nsN O4vXzz0/jeyIn9GG9UmrY7cy5HezPtilf8x4I6QM74RpGYeFJluGMcCBPs08nDZfJ/yy6lh1giJ rwWF7tWt7iHKiJZxi6a6ffNMHr4iRBgSjKw8nqcA3Tg/kk43szKMgkQgdvnWnQjdWADuyoe1Kyk artOYHq/BQOyQ0drpKS/Gta4zdnaZEjaTl2zu+F4PwjgeT2lhd53GskQoxECqhBdsuWtKsQNLWc f6fqeHz92r/lmUx9UxUSY035R 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: linux-usb@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