From patchwork Fri May 31 06:07:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jung Daehwan X-Patchwork-Id: 802291 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 4F4707D08F for ; Fri, 31 May 2024 06:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135653; cv=none; b=aOvmurFmdc0UtBAG1hMw9WR2O3GBEaYLBpTxEJBMJ3Y897Br+h+zT21GcVHedAX+mwZOQB1VzkUK35lBhNf6lbkkyHcwvpafehN0unhKSpaejyLqaH3Hz2opSGSmeR8WKKcugy9KpoHTRxxkBb3A0YJ3l9AYvf7Ch5fglmd2AvU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135653; c=relaxed/simple; bh=I7vfVl5cZX8mwhyn2ZbfmSpzKlDYcXY5xhoL6ChVS5I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:Content-Type: References; b=ccu7lJNneV9oKAIBFaAPve7IMAHEH+XVeUeZcc4FgpP2IgugSVTaW/nEGV2GakhlShkhzAd0ENPIBZM0o2NEh5oQW6ZickcfRMQE/I9WzABFe7Z2OCXrbwysn2aK5ZQNWqReiMaX6indXdFB5vv6E2Yf+AjxlqDXtStTI7GLrj0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=tVugJo3g; arc=none smtp.client-ip=203.254.224.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="tVugJo3g" Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240531060730epoutp03199f3ebb0cac1117b5963e8cc9b1ead3~UfcbPopVF0907309073epoutp03z for ; Fri, 31 May 2024 06:07:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240531060730epoutp03199f3ebb0cac1117b5963e8cc9b1ead3~UfcbPopVF0907309073epoutp03z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717135650; bh=siIMXjb9LgyGuhIYgE0DvvrWpGOftbUpZD76ktjUGMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tVugJo3g6AKTYVcwUbdaIykV7aLj40X3PKnEm5J7Mvec63VUX7kd+nAMOC2USBpQR xV+3w8tej797LvdOvKl67RSBoKtVDGtPj/S6+w1cXrpqFelJNl4KpNkbjQYCCK1Y8M /3Qwx9n9jH0DSRAksFuJforQ3Z9PBVcfGGIjHN28= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20240531060729epcas2p48391ad7a161fa4e3ba7a9be40ae1489d~UfcahJH3y0345403454epcas2p4Q; Fri, 31 May 2024 06:07:29 +0000 (GMT) Received: from epsmgec2p1-new.samsung.com (unknown [182.195.36.98]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4VrCMP4cv3z4x9Pv; Fri, 31 May 2024 06:07:29 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmgec2p1-new.samsung.com (Symantec Messaging Gateway) with SMTP id 4B.C2.18956.12969566; Fri, 31 May 2024 15:07:29 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20240531060728epcas2p358edd115ee217a50712f1ca3b3b22bd7~UfcY8QEf60843108431epcas2p3P; Fri, 31 May 2024 06:07:28 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240531060728epsmtrp22ec0d075b4063059a8dce96bdcbc482d~UfcY7d6UQ3247032470epsmtrp2y; Fri, 31 May 2024 06:07:28 +0000 (GMT) X-AuditID: b6c32a4d-f95ff70000004a0c-41-66596921033e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C1.6F.07412.02969566; Fri, 31 May 2024 15:07:28 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [10.229.95.128]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240531060727epsmtip1f8d8ff2367d46a75dbba6461bc97e506~UfcYqLghN0174601746epsmtip1J; Fri, 31 May 2024 06:07:27 +0000 (GMT) From: Daehwan Jung To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Mathias Nyman , Felipe Balbi Cc: linux-usb@vger.kernel.org (open list:USB SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), Daehwan Jung Subject: [PATCH v2 1/5] dt-bindings: usb: snps,dwc3: Add 'snps,xhci-write-64-hi-lo-quirk' quirk Date: Fri, 31 May 2024 15:07:33 +0900 Message-Id: <1717135657-120818-2-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBKsWRmVeSWpSXmKPExsWy7bCmua5iZmSawe7JKhbH2p6wW6zZe47J Yv6Rc6wWdxZMY7JoXryeze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X-CMS-MailID: 20240531060728epcas2p358edd115ee217a50712f1ca3b3b22bd7 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240531060728epcas2p358edd115ee217a50712f1ca3b3b22bd7 References: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add a new quirk for dwc3 core to support writing high-low order. Signed-off-by: Daehwan Jung --- Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml index 1cd0ca9..56091f4 100644 --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml @@ -254,6 +254,11 @@ properties: avoid -EPROTO errors with usbhid on some devices (Hikey 970). type: boolean + snps,xhci-write-64-hi-lo-quirk: + description: + When set, enable quirk for writing in high-low order. + type: boolean + snps,gfladj-refclk-lpm-sel-quirk: description: When set, run the SOF/ITP counter based on ref_clk. From patchwork Fri May 31 06:07:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jung Daehwan X-Patchwork-Id: 802289 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 0EE6180605 for ; Fri, 31 May 2024 06:07:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135660; cv=none; b=uoknCd+9/Weoqh89c/+W19RhuEST7UfNduVPLPuiFnpMVmeh66GDg9FR4xSNlNsbDj+BlmURa7IRc9eoU15LN2+YmgK11osmNdCIS+jz+RcSW01xZX/Ho6Y65PHrjuFjvkLlv88rb+PzLLqqyATncV48wiyKNKAgPbUHFCQunjM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135660; c=relaxed/simple; bh=ztBD1+4ywqM0nXn1kAdyVLehSdMYI6JTkjbKqKWqqoI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:Content-Type: References; b=ryNUhlWqM/b65etBREF66zHbubMa1IZ1OecsY529jB1nCJhMIMIOg/3BkNBfvaFRUJpD5Sx4oNH7DS5GaERUGAwPjBbQJiP1uUionlGGMyuHIK4nG8GsU/PxO1WBBwVffO717kLUvf+UkD0OZxyR9VZuF/zNwjwB/j6+wK410+U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=vNhOn7LM; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="vNhOn7LM" Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240531060730epoutp04bd49a2780803f334aa3d147b5ff78e1c~UfcbQgaX60512105121epoutp043 for ; Fri, 31 May 2024 06:07:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240531060730epoutp04bd49a2780803f334aa3d147b5ff78e1c~UfcbQgaX60512105121epoutp043 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717135650; bh=3V4t3/0ViKN3UkTN27Ig4BCruu4Zw1qFxlhky6SuapE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vNhOn7LMoghUVqMo+QUosmkUk+/Yogcl1MhcxwnIHiAz5hsAnSnQGg32DmGgpTTcf xtImDonIGw5f+PuRxXIp9IsulqEdlPZoTQU/aGXKlkZDdpW8MKGeeEufcL5lk+ew9r 5PCIGk49UFQ9pgjgWFtiSNZf1yzIBhVHe5oijyyI= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20240531060730epcas2p33fd374ae51704f064c2ea62e4e41f6dc~UfcayXOZC1346913469epcas2p3m; Fri, 31 May 2024 06:07:30 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.91]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4VrCMP5Fmpz4x9Px; Fri, 31 May 2024 06:07:29 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 18.FC.09806.12969566; Fri, 31 May 2024 15:07:29 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20240531060729epcas2p2d895a441b017f1797b1bc1e2558d9e1b~UfcZ13d9M0800108001epcas2p2V; Fri, 31 May 2024 06:07:29 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240531060729epsmtrp2601b90f299bcb9298ce4ad92243bff4b~UfcZ06qn13247032470epsmtrp24; Fri, 31 May 2024 06:07:29 +0000 (GMT) X-AuditID: b6c32a47-ecbfa7000000264e-57-665969214e10 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 1D.9F.08622.12969566; Fri, 31 May 2024 15:07:29 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [10.229.95.128]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240531060729epsmtip1c777a53131abaf67f0c939c1450f7604~UfcZnE_nt0034900349epsmtip1R; Fri, 31 May 2024 06:07:29 +0000 (GMT) From: Daehwan Jung To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Mathias Nyman , Felipe Balbi Cc: linux-usb@vger.kernel.org (open list:USB SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), Daehwan Jung Subject: [PATCH v2 2/5] usb: dwc3: Support quirk for writing high-low order Date: Fri, 31 May 2024 15:07:34 +0900 Message-Id: <1717135657-120818-3-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOKsWRmVeSWpSXmKPExsWy7bCmua5iZmSawZ0NKhbH2p6wW6zZe47J Yv6Rc6wWdxZMY7JoXryezeLlrHtsFpd3zWGzWLSsldmiedMUVov/e3awW6xacIDdgdtj8Z6X TB6bVnWyeeyfu4bdo2/LKkaPLfs/M3p83iQXwBaVbZORmpiSWqSQmpecn5KZl26r5B0c7xxv amZgqGtoaWGupJCXmJtqq+TiE6DrlpkDdJ+SQlliTilQKCCxuFhJ386mKL+0JFUhI7+4xFYp tSAlp8C8QK84Mbe4NC9dLy+1xMrQwMDIFKgwITvj94JdrAVbhStaD0xnbWBcJ9DFyMkhIWAi MevBLZYuRi4OIYEdjBLNO24xQTifGCXmfZnCCOF8Y5T4u/0hI0zLnV1fWSESexkl5l54C1X1 g1Fiy88OoH4ODjYBLYnvC8HiIgKzmCQezbkL5jALPGOUWP/nPBPIKGEBb4l1v5+ygtgsAqoS +9/sAovzCrhJTFi/kRVinZzEzXOdzCA2p4C7xIM558CulRD4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ICzgLbHu91Mwm0VAVWL/ m11MIDavgJvEhPUbWSEWyEncPNcJtphTwF3iwZxzLBDL3CR2XTrAPoGRbwEjwypGydSC4tz0 3GLDAqO81HK94sTc4tK8dL3k/NxNjOBA1dLawbhn1Qe9Q4xMHIyHGCU4mJVEeH+lR6QJ8aYk VlalFuXHF5XmpBYfYpTmYFES5/32ujdFSCA9sSQ1OzW1ILUIJsvEwSnVwKRg2aZoqe7XHNfz 8kLr0xUpZ30FrHe/2G4hvUrd0X7yQrnvD77zCP/4suT/bgc2hS9s8TPa7OPvOeUxP73VaVIq m254+KBQ4SPtEzqf74am53/ba+o74ZKC1CnRxZat8wplXGZVCm5WPva7mGla8Ya3K9hv30jS 3mtUbHE75oFVVPT9rQaOHpe5r3xeYWaY5PdL7bFw6Uret/z7E1nYjjDPD43TUJzK33nue6Fj RYWrXFNjctiqfSIW0e9+JzEkzpv1X+DfxMV/GoJ0n6ncCr/7K+LquZ1qZ5iSH05MeNoWtJf7 nfRBBt9vpjl9F9+1r79mv7DgTsfPBx3p7eKhp7RVdnbV9UxfNin9qV1NmBJLcUaioRZzUXEi AKiaxm7DAgAA X-CMS-MailID: 20240531060729epcas2p2d895a441b017f1797b1bc1e2558d9e1b X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240531060729epcas2p2d895a441b017f1797b1bc1e2558d9e1b References: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Set xhci "write-64-hi-lo-quirk" property via "snps,xhci-write-64-hi-lo-quirk" property. Signed-off-by: Daehwan Jung --- drivers/usb/dwc3/core.c | 3 +++ drivers/usb/dwc3/core.h | 2 ++ drivers/usb/dwc3/host.c | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 7ee61a8..89985fd 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1716,6 +1716,9 @@ static void dwc3_get_properties(struct dwc3 *dwc) dwc->dis_split_quirk = device_property_read_bool(dev, "snps,dis-split-quirk"); + dwc->xhci_write_64_hi_lo_quirk = device_property_read_bool(dev, + "snps,xhci-write-64-hi-lo-quirk"); + dwc->lpm_nyet_threshold = lpm_nyet_threshold; dwc->tx_de_emphasis = tx_de_emphasis; diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 3781c73..ab5913c 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -1142,6 +1142,7 @@ struct dwc3_scratchpad_array { * 3 - Reserved * @dis_metastability_quirk: set to disable metastability quirk. * @dis_split_quirk: set to disable split boundary. + * @xhci_write_64_hi_lo_quirk: set if we enable quirk for writing in high-low order. * @sys_wakeup: set if the device may do system wakeup. * @wakeup_configured: set if the device is configured for remote wakeup. * @suspended: set to track suspend event due to U3/L2. @@ -1369,6 +1370,7 @@ struct dwc3 { unsigned dis_metastability_quirk:1; unsigned dis_split_quirk:1; + unsigned xhci_write_64_hi_lo_quirk:1; unsigned async_callbacks:1; unsigned sys_wakeup:1; unsigned wakeup_configured:1; diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c index a171b27..8cc0def 100644 --- a/drivers/usb/dwc3/host.c +++ b/drivers/usb/dwc3/host.c @@ -126,7 +126,7 @@ static int dwc3_host_get_irq(struct dwc3 *dwc) int dwc3_host_init(struct dwc3 *dwc) { - struct property_entry props[5]; + struct property_entry props[6]; struct platform_device *xhci; int ret, irq; int prop_idx = 0; @@ -162,6 +162,9 @@ int dwc3_host_init(struct dwc3 *dwc) props[prop_idx++] = PROPERTY_ENTRY_BOOL("xhci-sg-trb-cache-size-quirk"); + if (dwc->xhci_write_64_hi_lo_quirk) + props[prop_idx++] = PROPERTY_ENTRY_BOOL("write-64-hi-lo-quirk"); + if (dwc->usb3_lpm_capable) props[prop_idx++] = PROPERTY_ENTRY_BOOL("usb3-lpm-capable"); From patchwork Fri May 31 06:07:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jung Daehwan X-Patchwork-Id: 802290 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 0EE2380604 for ; Fri, 31 May 2024 06:07:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135659; cv=none; b=Spulo6//xfewH5zDkiJ7g+uk3Pr0pZNHQihwgNyVZtWk08wR/gN8BRQ6FwXFXQOJi23QyU71fXhjT1sQNY2C2agwEa8UgI8FZJI+CSGY4IHxNXzIGOpzPGXl5oSV6I5PKZbcd4EKRFBuuCmfKgosm2pNEyBEmEAi3d+Y0zGHBnM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135659; c=relaxed/simple; bh=B+HMoOSjpZ2Cd2n5g3X3jsppClYLzAV4iMVq8sBS/70=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:Content-Type: References; b=DO6qiMn/GtBI8fkLSDfql1OxsmEm7anr908iQj5bie6zkGdPLviYBDrmVXag0qI+8un3cMkMdPieSPnekmBVoBGAQM49Gglf6NZdXtdrWCCdPc6ABazsqFmAMwdO+WfP7BRSDqEHbnGbzLTC76Sp93j1Q5DyupnjvxH6LGe7VjI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=EIjvHOTT; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="EIjvHOTT" Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240531060731epoutp04e7344f9f36ea141e3e2004f5497eaab5~UfcbzFFDW0512105121epoutp044 for ; Fri, 31 May 2024 06:07:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240531060731epoutp04e7344f9f36ea141e3e2004f5497eaab5~UfcbzFFDW0512105121epoutp044 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717135651; bh=FKza/P/zEeDaPaOYo5ayIu0cB3aav5Gew0qnwy2epQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EIjvHOTTIesI5PLdU862zOm7bcCMk9TlZzF73o+HG7bxFsU23PCWm5XJBp0dzPmI1 cAo74YDtGpFKBE3qLV7vV9ruAvF2vfoM/kGfl2KqwrOy6ySalgqrZ5Al3he0eogWsv Wd6UFZs3FTU3/FlrfUFxxDKIhAWT+DqzaMur8eAE= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20240531060730epcas2p169b9046d9a796599d8ddf2f712fcd379~UfcbWizH50815908159epcas2p1B; Fri, 31 May 2024 06:07:30 +0000 (GMT) Received: from epsmgec2p1.samsung.com (unknown [182.195.36.70]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4VrCMQ1JRdz4x9Q5; Fri, 31 May 2024 06:07:30 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmgec2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 62.56.08613.22969566; Fri, 31 May 2024 15:07:30 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20240531060729epcas2p1df12dd3b14c5fa2fa0716f72010b3dbd~UfcabB6en0815908159epcas2p1A; Fri, 31 May 2024 06:07:29 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240531060729epsmtrp2b55c2448305d8fe183a749804524f9b1~UfcaZ5-bD3252232522epsmtrp2E; Fri, 31 May 2024 06:07:29 +0000 (GMT) X-AuditID: b6c32a43-d51fa700000021a5-f6-66596922e3a5 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 69.A1.08336.12969566; Fri, 31 May 2024 15:07:29 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [10.229.95.128]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240531060729epsmtip1f97c9e7d3f461e3e70d20f23acfd54d6~UfcaMRun90051000510epsmtip1K; Fri, 31 May 2024 06:07:29 +0000 (GMT) From: Daehwan Jung To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Mathias Nyman , Felipe Balbi Cc: linux-usb@vger.kernel.org (open list:USB SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), Daehwan Jung Subject: [PATCH v2 3/5] dt-bindings: usb: xhci: Add 'write-64-hi-lo-quirk' quirk Date: Fri, 31 May 2024 15:07:35 +0900 Message-Id: <1717135657-120818-4-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKKsWRmVeSWpSXmKPExsWy7bCmha5S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fG9Uib23Q+AD1UsyoclvlFiKMxINtZiLihMB 6V4TOsECAAA= X-CMS-MailID: 20240531060729epcas2p1df12dd3b14c5fa2fa0716f72010b3dbd X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240531060729epcas2p1df12dd3b14c5fa2fa0716f72010b3dbd References: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: xHCI specification 5.1 "Register Conventions" states that 64 bit registers should be written in low-high order. All writing operations in xhci is done low-high order following the spec. Add a new quirk to support workaround for high-low order. Signed-off-by: Daehwan Jung --- 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 4238ae8..447d331 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 + write-64-hi-lo-quirk: + description: Set if the controller has a limitation of high-low order + type: boolean + imod-interval-ns: description: Interrupt moderation interval default: 5000 From patchwork Fri May 31 06:07:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jung Daehwan X-Patchwork-Id: 800877 Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 197AD18756E for ; Fri, 31 May 2024 06:07:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135660; cv=none; b=dUvvQdd+H3/tQlVhWUO+LEvdPnPppcIJ8e/BZw6XsB172r6KqxGzXM2YDfnqIHwMloX/eB7c0erxOKw7T83eGkPtBxwH9wb8Khcley1bw7t4OIF71RBAl6EqBuCvb6PKMZKfU4ey27RkHxkbZhDhHewyQUhv4WCT1JMJ4PTvUkE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135660; c=relaxed/simple; bh=1U7q0ge9pHo5hwGtKoiQ5VB13Mf9XHOlW3CJqvv3wUU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:Content-Type: References; b=JUcaHMTJEnZ1r6DB12nF+M35pdjdlvslCZ4O8g5HaHJKVdekCG/KB14bOJntVebMxJLeRxQgSrTHz2icW7ZYxYmP13ZWg1OXrqnrp48IGFYx0DMAcfbju4GGMgZXCEueBI/zEtBqcTqSnSo1XSQEqgm9LLuH5qQM50BOzhZd6iU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=Ha0wHgSf; arc=none smtp.client-ip=203.254.224.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Ha0wHgSf" Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240531060732epoutp04893ebd43756f9ecc83f6f0290f41effb~UfcckqDDq0512905129epoutp04s for ; Fri, 31 May 2024 06:07:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240531060732epoutp04893ebd43756f9ecc83f6f0290f41effb~UfcckqDDq0512905129epoutp04s DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717135652; bh=LX4H2dAcFEABKYFEQtbp4BH573q30eTVODmNH8eOMZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ha0wHgSfleDM5ZWp3wTdJz67r+tZOngeoFC9bdnqB84TD0dKIF/LJFDOCkTLV955m nE94f46nCmDWhORcvMiR6go4A34Jwsf2wc2zW0WDlJnyN6Rs//72UlgBYsIgUYGWOp gMopGrdqucfZ8p/3ST/IJeBgOOGaocvLlUZNmtIg= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20240531060731epcas2p4f30ff1dc4579b91089207fcb7eaffbc0~UfccJRN5C0491204912epcas2p4I; Fri, 31 May 2024 06:07:31 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.100]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4VrCMR312bz4x9QC; Fri, 31 May 2024 06:07:31 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id D0.1B.09848.32969566; Fri, 31 May 2024 15:07:31 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20240531060731epcas2p4d4cb51e9bb30bab4195d2d12567b1391~Ufcbd3b-X0345403454epcas2p4U; Fri, 31 May 2024 06:07:31 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240531060731epsmtrp28acaeea45f99869b1635308ad490ad62~UfcbdJC0y3252232522epsmtrp2J; Fri, 31 May 2024 06:07:31 +0000 (GMT) X-AuditID: b6c32a45-a536da8000002678-61-665969236bcf Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id A2.30.18846.22969566; Fri, 31 May 2024 15:07:30 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [10.229.95.128]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240531060730epsmtip186ef2b9ee394f3aa91319af99be60253~UfcbRlF960050400504epsmtip1G; Fri, 31 May 2024 06:07:30 +0000 (GMT) From: Daehwan Jung To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Mathias Nyman , Felipe Balbi Cc: linux-usb@vger.kernel.org (open list:USB SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), Daehwan Jung Subject: [PATCH v2 4/5] xhci: Add a quirk for writing ERST in high-low order Date: Fri, 31 May 2024 15:07:36 +0900 Message-Id: <1717135657-120818-5-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCKsWRmVeSWpSXmKPExsWy7bCmqa5yZmSawamlYhbH2p6wW6zZe47J Yv6Rc6wWdxZMY7JoXryezeLlrHtsFpd3zWGzWLSsldmiedMUVov/e3awW6xacIDdgdtj8Z6X TB6bVnWyeeyfu4bdo2/LKkaPLfs/M3p83iQXwBaVbZORmpiSWqSQmpecn5KZl26r5B0c7xxv amZgqGtoaWGupJCXmJtqq+TiE6DrlpkDdJ+SQlliTilQKCCxuFhJ386mKL+0JFUhI7+4xFYp tSAlp8C8QK84Mbe4NC9dLy+1xMrQwMDIFKgwITvj++LrzAUzBCq2NJ9gbmB8wNvFyMkhIWAi sWvTfLYuRi4OIYEdjBIn909nAUkICXxilGjYIwGRALJnznvJCNPR/eEfK0RiJ6PEwUlf2SE6 fjBK9F2S6WLk4GAT0JL4vpARpEZEYBaTxKM5d8EcZoFnjBLr/5xnAmkQFvCRmPZp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WOU2HRj FWMXIwcHm4CWxPeFjCBxEYEFTBLXpt1mB3GYBZ4xStx70MIK0i0s4CMx7dMOFpAGFgFViSU3 CkHCvAJuEpM3nWSFWCAncfNcJzOIzSngLvFgzjkWEFsIqGbXpQPsExj5FjAyrGIUTS0ozk3P TS4w1CtOzC0uzUvXS87P3cQIDlCtoB2My9b/1TvEyMTBeIhRgoNZSYT3V3pEmhBvSmJlVWpR fnxRaU5q8SFGaQ4WJXFe5ZzOFCGB9MSS1OzU1ILUIpgsEwenVAPT2uBrqTvELCJE1i57q9Nl 0hn9sW/j2Ws3zHlO1WifCF/smmFtGSO8Yassz6I5iudNr5cWbTR1+ntU69f8oryVgW2Tnzp4 hT92bxDy0ztp/P26oumTpP13p7xZkbxiypKF5fyckcw/d51drCLcXeujUnvAruqakOEpH+Fw 03eFZw/Yz5O8/u30IsdzV/LLb678d7jn3KTzK35Ldku0zG3dtXtu1862A7PO7bfmZvKYpfi8 a8eEGTeT9jIKiGxf5Ojt5tmX9mcK36nrv76Fvz8f88l0rhjvxd9PJCqeXIvQuz+dXbM6ePeV R6w3boieCEhd6f2+dMMczedyD1TfW3P/PzZb7xZP8wWV57nJ0ovPRimxFGckGmoxFxUnAgCQ el5TvwIAAA== X-CMS-MailID: 20240531060731epcas2p4d4cb51e9bb30bab4195d2d12567b1391 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240531060731epcas2p4d4cb51e9bb30bab4195d2d12567b1391 References: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: This quirk is for the controller that has a limitation in supporting separate ERSTBA_HI and ERSTBA_LO programming. It's supported when the ERSTBA is programmed ERSTBA_HI before ERSTBA_LO. That's because the internal initialization of event ring fetches the "Event Ring Segment Table Entry" based on the indication of ERSTBA_LO written. Signed-off-by: Daehwan Jung --- RFC -> v1: - add a quirk in xhci - use the quirk for programming ERST high-low order --- drivers/usb/host/xhci-mem.c | 5 ++++- drivers/usb/host/xhci.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 3100219..ef768e6 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -2325,7 +2325,10 @@ xhci_add_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir, erst_base = xhci_read_64(xhci, &ir->ir_set->erst_base); erst_base &= ERST_BASE_RSVDP; erst_base |= ir->erst.erst_dma_addr & ~ERST_BASE_RSVDP; - xhci_write_64(xhci, erst_base, &ir->ir_set->erst_base); + if (xhci->quirks & XHCI_WRITE_64_HI_LO) + hi_lo_writeq(erst_base, &ir->ir_set->erst_base); + else + xhci_write_64(xhci, erst_base, &ir->ir_set->erst_base); /* Set the event ring dequeue address of this interrupter */ xhci_set_hc_event_deq(xhci, ir); diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 3041515..8664dd1 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -17,6 +17,7 @@ #include #include #include +#include /* Code sharing between pci-quirks and xhci hcd */ #include "xhci-ext-caps.h" @@ -1627,6 +1628,7 @@ struct xhci_hcd { #define XHCI_RESET_TO_DEFAULT BIT_ULL(44) #define XHCI_ZHAOXIN_TRB_FETCH BIT_ULL(45) #define XHCI_ZHAOXIN_HOST BIT_ULL(46) +#define XHCI_WRITE_64_HI_LO BIT_ULL(47) unsigned int num_active_eps; unsigned int limit_active_eps; From patchwork Fri May 31 06:07:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jung Daehwan X-Patchwork-Id: 800878 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (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 9DAF77E101 for ; Fri, 31 May 2024 06:07:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135657; cv=none; b=RJFt4kAB8RnaGbgrb5d1g9QskqAoSuljX56fgHc+sSd3bMy5UUTryKCxPu5QGc1NeRr1G2CtQGMjMv0kn5jmj30ORyRbmvhskEeY2HFqS9wJWAT/Rdl79robrBA+7fKkf0KoxKBvZacVxL9p+kU+DaQam4MM7L5V7uWoTb69GSI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135657; c=relaxed/simple; bh=+3BZx419ZAMcAUTTU97c9t/HNAedUfsPXdqO69drvVo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:Content-Type: References; b=or7qMLkZwTew2gU5Ja17EGAf/8CzIbyIpOci3D6fkWtsplwafyVHuXae3sqeCpF4ur8nsM952OKgi9WJIVO8+LL6cQHocNPcb+Pfle+9x5h9dhj3EB77wZwbd+hRXNqFpwjHETS2NyFus/Ks/NxiJCyFpNFFjGb9EygZgUxtuCM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=oisY3DK8; arc=none smtp.client-ip=203.254.224.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="oisY3DK8" Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20240531060733epoutp01956ef5c44d9fff1e1e44387d6d19a753~UfcdW-bkA2201922019epoutp01L for ; Fri, 31 May 2024 06:07:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20240531060733epoutp01956ef5c44d9fff1e1e44387d6d19a753~UfcdW-bkA2201922019epoutp01L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717135653; bh=PRvIg4Zw3iG8OrJ9EiBqGy+QtBxM3pliyzg3yqVWZb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oisY3DK8MZQnFDBaRa0VYOlt6PTRwybsl0A2KNSL36KyWhNjBxC8Fa4Z4YDIa8O9I lM5+mnvYBi/RvW0Eyt57BS04BGUeoKMq5IZEhsXNXWaBqeguwMCLS9VEsX3PW8CTL/ pv+0G7xOr5AyylcKsxG/HOxyfIrbzk36CiKQzp8Q= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20240531060732epcas2p302e1af9507bd5af4044a1f27fb2a2d58~Ufcc9On681346913469epcas2p3t; Fri, 31 May 2024 06:07:32 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.99]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4VrCMS1fw8z4x9QJ; Fri, 31 May 2024 06:07:32 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id D2.C2.09479.42969566; Fri, 31 May 2024 15:07:32 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20240531060731epcas2p4f14afae9f00a7e71e6bd3863f0a51441~UfccICfaO0345403454epcas2p4V; Fri, 31 May 2024 06:07:31 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240531060731epsmtrp2715f377978b120b5f5025b1fa85798e0~UfccHQ3GS3247032470epsmtrp2G; Fri, 31 May 2024 06:07:31 +0000 (GMT) X-AuditID: b6c32a48-ea7ff70000002507-e4-665969248bf9 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 54.6F.07412.32969566; Fri, 31 May 2024 15:07:31 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [10.229.95.128]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240531060731epsmtip15254132b4de1938a865da1396dad6bdd~Ufcb7193e0186201862epsmtip1L; Fri, 31 May 2024 06:07:31 +0000 (GMT) From: Daehwan Jung To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Mathias Nyman , Felipe Balbi Cc: linux-usb@vger.kernel.org (open list:USB SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), Daehwan Jung Subject: [PATCH v2 5/5] usb: host: xhci-plat: Add support for XHCI_WRITE_64_HI_LO_QUIRK Date: Fri, 31 May 2024 15:07:37 +0900 Message-Id: <1717135657-120818-6-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKKsWRmVeSWpSXmKPExsWy7bCmua5KZmSawcrtnBbH2p6wW6zZe47J Yv6Rc6wWdxZMY7JoXryezeLlrHtsFpd3zWGzWLSsldmiedMUVov/e3awW6xacIDdgdtj8Z6X TB6bVnWyeeyfu4bdo2/LKkaPLfs/M3p83iQXwBaVbZORmpiSWqSQmpecn5KZl26r5B0c7xxv amZgqGtoaWGupJCXmJtqq+TiE6DrlpkDdJ+SQlliTilQKCCxuFhJ386mKL+0JFUhI7+4xFYp tSAlp8C8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y mH/kHKvFnQXTmCyaF69ns3g56x6bxeVdc9gsFi1rZbZo3jSF1eL/nh3sFqsWHGB34PZYvOcl k8emVZ1sHvvnrmH36NuyitFjy/7PjB6fN8kFsEVx2aSk5mSWpRbp2yVwZSyYvoSxYB9bxbUT L1kbGA+ydjFyckgImEjsmHUUyObiEBLYzSjxsH89I0RCUmLp3BvsELawxP2WI1BF3xgl+r5P Zeli5OBgE9CS+L6QESQuIrCASeLatNvsIA6zwDNGiXsPWlhBioQFwiU+H40HGcQioCpx8lMr M4jNK+AmsfrZP6gr5CRunusEi3MKuEs8mHOOBcQWAqrZdekA+wRGvgWMDKsYJVMLinPTc5MN CwzzUsv1ihNzi0vz0vWS83M3MYIDVUtjB+O9+f/0DjEycTAeYpTgYFYS4f2VHpEmxJuSWFmV WpQfX1Sak1p8iFGag0VJnNdwxuwUIYH0xJLU7NTUgtQimCwTB6dUA5PXxzWxQsr7NT6LPe2J WGtgEFpxjOXpZObfnu/Or6xNeM4odFRWUC8nROTdLX3TCBeNzIPiC3pTcsriVzSzL36kmWnM GC17WK3flOWgnVru0dWHe1anX3Qos5jPvc/l9C6BZxttJop7zph47+2fjg1h3TtSZdgOrd+y 0+aFVugFpRORP6NDjD9Ufzqm06hsu2GKTKue1qk/2gf169acuXbqbkIfY13uRZ/XWkrsd5YF Stn7qLrv6xEwP6Nhf+vC/MCXx9jm7l6meOsGK1fPd8HVjY1FHeHMNdN3HjoVdEvhiZu1y4vT 6zcaOutJMe4/NeWjh3RM8uevwVOtjoguSDPbXXTzwLz9k/cxiazz/KvEUpyRaKjFXFScCAA+ KGNdwwIAAA== X-CMS-MailID: 20240531060731epcas2p4f14afae9f00a7e71e6bd3863f0a51441 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240531060731epcas2p4f14afae9f00a7e71e6bd3863f0a51441 References: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: This is set by dwc3 parent node to support writing high-low order. Signed-off-by: Daehwan Jung --- 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 3d071b8..31bdfa5 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -256,6 +256,9 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s if (device_property_read_bool(tmpdev, "xhci-sg-trb-cache-size-quirk")) xhci->quirks |= XHCI_SG_TRB_CACHE_SIZE_QUIRK; + if (device_property_read_bool(tmpdev, "write-64-hi-lo-quirk")) + xhci->quirks |= XHCI_WRITE_64_HI_LO; + device_property_read_u32(tmpdev, "imod-interval-ns", &xhci->imod_interval); }