From patchwork Tue Oct 31 04:40:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Kumar X-Patchwork-Id: 13441032 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 841483D6A for ; Tue, 31 Oct 2023 04:40:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="K8NPu7dq" Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC049AB for ; Mon, 30 Oct 2023 21:40:44 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-da2b8af7e89so3217559276.1 for ; Mon, 30 Oct 2023 21:40:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698727244; x=1699332044; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=eYwnCg3MzOCxaL6syOpApDs7eXE4N92NMNfKk1723ok=; b=K8NPu7dq9Wrw4mgKePz0ZSQ5gLDyRZgC7oA32z/4lY34GcKiiuAAGt8DCuQHY6avEy hfuxxihnVr2n71/V7J3jnvBAaOYTfUtLvYmrjzdiDr4P84Uoz5pXXJQlZEDxqpCSbTWa C2ZqUBHyzoL9gDkplmwUv1IjokAMshlLW9ml6uAmkGBqjWpLcN2tuLsRDJhOA5/pl5Px Ps/XcfJF5oPGFQ+xt2gERTr+uG+poRkTyxnrXRLocFnCm5zT6aRelvb6VVF97gSoR7ox YnnVQxAUBjh8uifbME1DzfZbIiq5aS2X86mM6/Rv20TmgUqiIMGXdV41niL9vmYEjiMr 7s5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698727244; x=1699332044; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eYwnCg3MzOCxaL6syOpApDs7eXE4N92NMNfKk1723ok=; b=ZqVV7KBhNEmnL5zQRYEqkVt9d7u50CpZp+vvqNHzVJ9RmrAkFLGi3jm/nztypRdZcQ 0U+YVGMw9aJoDz3kXLLOoyGnwerjFjv3941/yOpbTJtr4TQ8LSapKuWb9sCw/zyPi2Ql IFg2l5ZIMH+XqznfWiglMx+NMwCpbG5nxT+m4jIbg1U5QHOsx139XLwSty3+rOOaBJj0 RNl8Q6NgqqyBxRY9FJMaQpu2zXMbJ2Zg3xrUDPLADEnu5wCeWY5UehiV6PvrGXa2Izyq nS4YNMimRUWT4sMSvgnMQyut6PTvmUAcN+j5TyCMac8BVvmS736hANz+G4EyiyxziPMA zzfA== X-Gm-Message-State: AOJu0YzO3r5zwr7AkJ2bzMCAMeczGR6kqjJ8XeEbeNIouHfxE+RW+PL1 3ISySzqhJ/9WA+3GJ7osIyaiYdnzmXsS X-Google-Smtp-Source: AGHT+IF1blIGUiwwYOg1/mXFkKE0MNTH6FvFkl8I66ichTIVYu+k5T3UQy8MezeW8HkSb6f9gfoFH86xoxvQ X-Received: from mnkumar0.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:313a]) (user=mnkumar job=sendgmr) by 2002:a25:d754:0:b0:d9c:66d1:9597 with SMTP id o81-20020a25d754000000b00d9c66d19597mr211255ybg.13.1698727243860; Mon, 30 Oct 2023 21:40:43 -0700 (PDT) Date: Tue, 31 Oct 2023 04:40:20 +0000 In-Reply-To: <20231031044021.1162403-1-mnkumar@google.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20231031044021.1162403-1-mnkumar@google.com> X-Mailer: git-send-email 2.42.0.820.g83a721a137-goog Message-ID: <20231031044021.1162403-2-mnkumar@google.com> Subject: [PATCH 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support From: Naveen Kumar To: Mathias Nyman , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, royluo@google.com, Naveen Kumar M From: Naveen Kumar M This patch exposes the existing quirk XHCI_NO_64BIT_SUPPORT so that dwc3 clients can also use this flag. Despite HCCPARAMS1 being set to 1 some clients may not support 64 bit addressing. Signed-off-by: Naveen Kumar M --- drivers/usb/host/xhci-plat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index b93161374293..d5f37decb7da 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -249,6 +249,9 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s if (device_property_read_bool(tmpdev, "quirk-broken-port-ped")) xhci->quirks |= XHCI_BROKEN_PORT_PED; + if (device_property_read_bool(tmpdev, "quirk-no-64-bit-support")) + xhci->quirks |= XHCI_NO_64BIT_SUPPORT; + device_property_read_u32(tmpdev, "imod-interval-ns", &xhci->imod_interval); } From patchwork Tue Oct 31 04:40:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Kumar X-Patchwork-Id: 13441033 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58ABF3220 for ; Tue, 31 Oct 2023 04:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="tH16I95C" Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90613C9 for ; Mon, 30 Oct 2023 21:41:07 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d9a541b720aso5225927276.0 for ; Mon, 30 Oct 2023 21:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698727267; x=1699332067; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Vprtd1rnc+6PWmI9YtTse/TMvnp22Nc9rwicgWr4RkQ=; b=tH16I95CKUfZ0YPNmD9HKsUuvHhLNsh+jN2rt+vlfjj478qUaPAJjSISkx4kug3/fU SJhkFNm0l0hg3ubN6Mb49G5I1D3+MOvjyhMCt7OBfhouADE2xUABTncaXmC41GGg14JK mDrtrx2aa9hQfGQ8lNNL2184bTpx0L5dJb0mVE8yLPnuZpeEM2dxRfTHuxeABieMRwO6 VsWMaUbTnxPwmEFVx6x0rCcpZmcrH5qACG6y1WWRvMUT00RTGaDl+oQYJIreaFJ/HRna tGn4CVF9GwJ8YnNRg9deK+IGQSNunYCiAopomXInRszq2PbjTbnLaNm/1LKTiJ5f0A95 ESzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698727267; x=1699332067; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Vprtd1rnc+6PWmI9YtTse/TMvnp22Nc9rwicgWr4RkQ=; b=BXnPJWN9pWvbgXNlERB3dEmWqYtBgWn/ry6B4O7flZtc14y9x0txdjOaArM7ZWG0mT XEryPCXALfbLHPm7D8CMdZbcIg0u4nsaAX8N9RjQSSSyKoH9BelH8T2+B2q7Y8FpwsCC uwaRyFGornuybfIOZEzXe4oputCu7En1gzrJOjy33XIA8+3VB2gBix48dvQ/h+fDSA9r cQtODQMgr9V6Me2/2VUjt2A7u/ZYQ338nvQc9ushCUpzrhaOHvOLkIt9lX8BUX3m3PiX kuslOHpjSqcpD/DitfGPb3/n3z+yZoYTdVmji0TeEffWkLQM6tlrSM6QE3CnN0UDIn06 3JOQ== X-Gm-Message-State: AOJu0YxQHXQlYBXEfq6Qs7ZfB1sPwurx3XT9a6OGRJf9WL1KDeZZkK0z FGSxb4PJBXrgkE0hzNNmPyU4rH/xal0P X-Google-Smtp-Source: AGHT+IEWTHudUpZ0bOr4errsoYCA6YThAwqSHURzraWyydGu8fZqxl0t8CFXT5EE/124DtjvNQ2jO0Q7WScX X-Received: from mnkumar0.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:313a]) (user=mnkumar job=sendgmr) by 2002:a25:d754:0:b0:d9c:66d1:9597 with SMTP id o81-20020a25d754000000b00d9c66d19597mr211275ybg.13.1698727266148; Mon, 30 Oct 2023 21:41:06 -0700 (PDT) Date: Tue, 31 Oct 2023 04:40:21 +0000 In-Reply-To: <20231031044021.1162403-1-mnkumar@google.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20231031044021.1162403-1-mnkumar@google.com> X-Mailer: git-send-email 2.42.0.820.g83a721a137-goog Message-ID: <20231031044021.1162403-3-mnkumar@google.com> Subject: [PATCH 2/2] dt-bindings: usb: add no-64-bit-support property From: Naveen Kumar To: Mathias Nyman , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, royluo@google.com, Naveen Kumar M From: Naveen Kumar M Add a new DT option to specify whether a host controller is able to support 64-bit DMA memory pointers Signed-off-by: Naveen Kumar M --- Documentation/devicetree/bindings/usb/usb-xhci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.yaml b/Documentation/devicetree/bindings/usb/usb-xhci.yaml index 180a261c3e8f..20dc134004f3 100644 --- a/Documentation/devicetree/bindings/usb/usb-xhci.yaml +++ b/Documentation/devicetree/bindings/usb/usb-xhci.yaml @@ -25,6 +25,10 @@ properties: description: Set if the controller has broken port disable mechanism type: boolean + quirk-no-64-bit-support: + description: Set if the xHC doesn't support 64-bit DMA memory pointers + type: boolean + imod-interval-ns: description: Interrupt moderation interval default: 5000