From patchwork Wed Nov 1 10:16:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Kumar X-Patchwork-Id: 13442736 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 126CB10786 for ; Wed, 1 Nov 2023 10:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iiubIDLj" Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29775102 for ; Wed, 1 Nov 2023 03:17:19 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d86dac81f8fso7179355276.1 for ; Wed, 01 Nov 2023 03:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698833838; x=1699438638; 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=iiubIDLj9+fiCVO4MRpbpNiWATQLYfZHiBCO35SoWgZagmwID+7ufEeHiRa4+HlAkN sP0sY+7jA9UEd9dB/nWZLLxUnc/XHy3xiXnsWWd7Wu6V3eTm2SjcRw3lcjf24d1lqaLP 2Due5leqljuEQc1plzedg+EhOxIMvpeAER0lnd+zngCkG4t3N4iWIsa05+oqyszpXG66 v3K/FismcNKh1F/jqiWKQ/p+mHqd2f56cBTz4Dv8h85sufn5JUPiGjMyCDw/glZIBUWI Hsj3eEbSAy/NV2qcZ2KwyZjkdqswRkm6Cdqfiep/afgFQKz9guD+Ve4azVqRkl0TeP/t PdGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698833838; x=1699438638; 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=JMRr94sU5DYujHx9mc9lGpB9R3Y3NUbE9KUpD3At/mjyiynqQ9cEO5NLm+nauhlQZp BNmDnDyMNnzV1IEyOjlVZnHFRnJTiGRqtfEQDqhjvFFeFo38P1bw6uCbA6suSq73bbLC LoHoYntPxixKv0EfctrBOu4BQy5UjiYssyWTPiqv0MOedG/nFrE4O8ODRWnfjQpAwC3r kn21MbRSq3Q76cViUFJOdm9yFR+k/GSLxAwHWd+rMjdxFl9S7XA+oOKzVQsljPcMqwoJ rV6DbWpqv5ki2OxY+s5kn3+DhC5quXXwhbProZTK5mkIkawW6puH8QlM3NBTAN3wQ0QD mo9g== X-Gm-Message-State: AOJu0YxEa8+pQKTu3OARK1i5NJ67XdXAMKa/ZMTEyuRty6jTZeGIFx1n NTwMOU7BNoTq06Mq61GSZfB3f/Ga+j6h X-Google-Smtp-Source: AGHT+IHinYRwD8fj0nrrNZJpNGMVcxTbcgPusqm9nKng4RFXsyc4EKTfTVPgJ98yc1drhyuZAcOYzZfbiOsN X-Received: from mnkumar0.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:313a]) (user=mnkumar job=sendgmr) by 2002:a25:bc52:0:b0:d9a:3d02:b55 with SMTP id d18-20020a25bc52000000b00d9a3d020b55mr296671ybk.0.1698833838374; Wed, 01 Nov 2023 03:17:18 -0700 (PDT) Date: Wed, 1 Nov 2023 10:16:24 +0000 In-Reply-To: <20231101101625.4151442-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: <20231101101625.4151442-1-mnkumar@google.com> X-Mailer: git-send-email 2.42.0.820.g83a721a137-goog Message-ID: <20231101101625.4151442-2-mnkumar@google.com> Subject: [PATCH RESEND 1/2] usb: host: xhci-plat: Add quirk-no-64-bit-support From: Naveen Kumar To: Mathias Nyman , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, royluo@google.com, devicetree@vger.kernel.org, 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 Wed Nov 1 10:16:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Kumar X-Patchwork-Id: 13442737 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 B815B10786 for ; Wed, 1 Nov 2023 10:17:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Khfnj0y2" Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44B2D11F for ; Wed, 1 Nov 2023 03:17:26 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5a8d9dcdd2bso115532887b3.2 for ; Wed, 01 Nov 2023 03:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698833845; x=1699438645; 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=Khfnj0y2ac9BFIyLjiz85G0lATt4TAJ02Vm3UaXjXQ3L3r0H6dedXWkWGhl49+O3wx 4urwKE+YDUeddAnNjVHiKU3Wtek8bfHfaumxL/tVjSP1Hsh1NpBulUGPTmADhEMlvP/j 24Zd7P5YppVwvdpoxJARrL6odJeu43oJtn4EImlnRGJlxPwYKCVXR79/NewPZHbEZJB4 Z/VG0YzHWZbLrcpmVY3WIMvelPauPlCIKanNR7GPE+2FQLcRErT4pLeiH02pYKDPoZIe WyErqa/7sMmxDMxeVkEvwO+qsJWBbbLvs6TkHztS6WOnSiAyphEcI1FsNxKSvhm/h2iW l2cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698833845; x=1699438645; 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=p2OUNd+hbva+1hOJfjsuScVKJ/DDWXIp1CcdsbR9/wyP4nn+p5AoF/xTs5uBO+V8q4 QeldjHTKfaYJm6EY4p/I6KU2sIFNC2PaeO8npslSaJyezruYqj+isoJuQHD8CVb4xyD1 OUHVMex8KoUkgEWSL1aaUw/EDrIYHj+q+TlVfjjeDbjLwXLz2Wa6PJfnaS06mcdmjR3w JG16BV5Jh5lA9R6zUrPE6A68LqNWcmwar2Yy3SuYAV8BUxpO0iggBfq+mGor3+YYqG5T uABZ3qM/AMyZp0feuQ2mkq4jKWbFvXKkJ5FaBgiRauYG0AYKXENsnMyhvOzrVKz+Vk6h 5bFQ== X-Gm-Message-State: AOJu0YxGefiSDAUCnpFve0k32RLxyD22bbx92Tktxaz70u207oXkO4HF wX1NO5jbnJox8YnKWI0TZSiTdWhODc7W X-Google-Smtp-Source: AGHT+IGkfIXtBIMbWiSohH3G81opyz7YcOkbxfQvv4/AQ1loEffyLJXXLOsN3/OXjkkFqgKoDde5Qf0cSNH2 X-Received: from mnkumar0.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:313a]) (user=mnkumar job=sendgmr) by 2002:a25:ce94:0:b0:da0:3bea:cdc7 with SMTP id x142-20020a25ce94000000b00da03beacdc7mr263093ybe.2.1698833845477; Wed, 01 Nov 2023 03:17:25 -0700 (PDT) Date: Wed, 1 Nov 2023 10:16:25 +0000 In-Reply-To: <20231101101625.4151442-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: <20231101101625.4151442-1-mnkumar@google.com> X-Mailer: git-send-email 2.42.0.820.g83a721a137-goog Message-ID: <20231101101625.4151442-3-mnkumar@google.com> Subject: [PATCH RESEND 2/2] dt-bindings: usb: add no-64-bit-support property From: Naveen Kumar To: Mathias Nyman , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, royluo@google.com, devicetree@vger.kernel.org, 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