From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795944496; b=ih8Ra6edqWAT5H3dLDZHFm2i3CmXFfwNj73AKB/Hqb7JTJEKZOVjoaBP5yMFHCciM+Hh eOX6QO+DWyNX2f+JF+Jqc9wvbZmaTR3uIlA4Hj5KdjrYSr+rYhspfi6edTeFwc7vxDB3B JaRv3/D7KVYzqFdybUzrOh78+LdkOuYPwT79sv4vSBmbZjFTnOYaD27cpAq9JPlTzrE2p pF46LFNcpgUPTkbDpTWsDllkH2jOKE3mre1bTLcCHZHJ8QPVQx3UoHmqOM4fav7nS6TQI RE9jqZnnrSMM5sn45QWvELD5JH/EsT21H69d5xyHMj7MXC2Uo/MUdTglyc+moFOEz/A== 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=46V9luX1BhBZ25IbUM4MuQAG1ITcQ3Tc2rk557LP7Hm5hGE6TOznX37TH3Gp5v9DQFtr CpBZsR65AjhkKI9q1q+WEvn6Okdau39z8Pk0I/UG8JRmDo4wGJwNK5aacf+sjp6tX+a8r alZXC5Pf6JzVmBxUqr6EucwmtU5zupGjroCgf7Phf0k18TuS1yY1M/htobL7h9RXiJuGK P6ZIBb+Rn2ij/1/i6vLAa/nVRK23aMNrKY1gWceKI8eLc+ryUbp1p2OdjZJ9yXRq4+o/F 9WX1eieZ/dpxWDKUT1LhsxWK1LuqtzD4trW53EkJv7GL4hfM/6FhiHaLUtAb2qxpOKQ== 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.42 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 4F2A7606A6A5 for ; Sun, 29 Nov 2026 09:28:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4F2A7606A6A5 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-f42.google.com with SMTP id 5b1f17b1804b1-4bb70074ab2so99536785e9.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=fq7WcQnLnAsjB9Z8jTvR3rjNtY0+xVo606APOiqs1HDCOru1a+3CSo/YM4uSOmr8ff KzyWXOG4U51UVVV+M0cQjqrXsvHb3KIYYHIgMQTh7/tynAAvu6DGuMVUmuqruCYjf5YX qYXggPDjPib/XhJn/NznpuvbJGHjAharTLkgdBLkN3S545mXAJBZwN7tOVdBNI7yiMAj /+oIaHxcGce9zt2Q1EPwyH6wOabQrPfO4FyguGzK5W+9Vftu0byBpWGkGxB8lVFmN5T9 SegcXanAo5BCS2hR6FcawELAp/PjMLXiNclDfxTQRnoLJWkx/mlYZ3kkR9/VGYA6aBQC PvTA== X-Forwarded-Encrypted: i=1; AL+hErGbgHcou4sde0/MtUaHwpilTXij6s3A60jpqQFAJ7bz1bHQQbrBlw/qwGlNPe5RlrfYni0zxkyCQtBvEqY=@vger.kernel.org X-Gm-Message-State: APuU4Z+xo9cdECyD4fWHK7dIJ6lk9NTiFfoSbQisXsr8+O0H7oULmGmW 5kcXSkvHSGJE3bh4ugMnokaH2tyncTuSePTpTtHDxAIeeTtjYZ01GleY X-Gm-Gg: AZFdTZeTaTl+4aymSIrp1A/7HOvtWDygNoOdo5gVn6dLakIWOd1Jnr12Nuh2QbtxvyU zDUBoLitsuRAbZsH0SBqpSCMtTDoCtMFymJW75/wXAfcZBF01KE0+mo4JDlzW+ewUI4QWnuDusv AtGs+4DgX+YjwRaqsQUnTzez/a70xyMPDa8WL1RT8yAeUII2+kARg2jXdGk2CMVeLHM8XNxD6o1 hzXqekHBAqoO6zQ9IxSVRcucYb9fvIKkpSEEccBj2A5M0DKZ1h+CCDt3/yz5RI16c+qyDNXC1PJ 1YkduklI6c+WyastQB84/NGGXJAgAlGFjkWigE/YXCgy/krjAgkUKzZ3ZmXU8ODuXF2/6gdGEvs vWuQ2V7br4WfKJsTjEbM3YOD+KFNj9tLlAz5IgocNtIXt4OCCRAlyYBhKf9VEsjrRULtEfz119F Z2YwOKJSQ7/ctoaXwXPuoHVpN6NIWa3xtWCQV/1cHgRqjEGCFmY2dCvrSKkgWm34yd9B/bBU7OI qP2Lmkg1FvpK6Sv0neNCrYkyS6Ei74xiR3lA/nl8cis9sM0b6HgQfrTDVRfK9HLWhQvh4KNHw3S jK3fhU5jesgaKb/86ZEawzHiMVCIobjGwGKYEi5OxQunuGfqn0rwbX6O02a4LxT6EhU87AS/55Q f7yBKpBnSyTaSNMD6LgH9kv9Y 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-kernel@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