Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp246620lqh; Thu, 30 May 2024 23:08:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeYqNoRiwsXfNX1vJjz4r+FV8UqYyQoO1+TORy4obePpfQ91H3ygbOT5lJsNYx8rZyA/YmDaddekcTQeABMaCd19w13R4uPl62qJEfpw== X-Google-Smtp-Source: AGHT+IEPtASQ/LCqCfrrrNUg/CdZI6/e5pyeUk/pxXz5Vi1DZR4MTILyc8JyRwl+YTQ2EKkfjyRH X-Received: by 2002:a05:6a20:3944:b0:1af:d40a:7692 with SMTP id adf61e73a8af0-1b26f2d578fmr1130391637.42.1717135682370; Thu, 30 May 2024 23:08:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717135682; cv=pass; d=google.com; s=arc-20160816; b=tDzMiClLT49YXOTMHAiqBr8yjILnmYmvziiaDBD4HYa6Ua7iWNhidoyDsiF0mQr2BI 60CplmYVeoPmS2zH8FtwSBm2teQkzTppC99HA4mv5ksma08jfjHkaYZpDj1GtXtbutML H1tIKgKw22O/Dn1KjlOWnowaph6AZZ5fFBvBgIbl89V8Sx1MKKSLslSmSkOsCmLn5Q7p 0fh8EFmbpjucOxKYdqYS5cJCFi1cV8jYmltiVE6y978ZfwCp9qqGy0rNm0k6ErjtbIXU DtTwtn7oHKotFsEeqWCWq1rJGuRN8vZiA2RTkOX6ENGdxiKIySOJkufj04pIqnXSuAY3 /xOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :dlp-filter:cms-type:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=lKDV9Lg63LYuTqC7+tbrD7f1+q5993NJv6FjnUKs/Sw=; fh=TJg/lXl4Te/ECsaz+aaU2g7X87O70SPKavvIbse1FB4=; b=bihTkQQElz2iS5fr1Oxh7PHFXXKxBCX2u/Ss2JhsOHW0cR3Qx5XYJlSstgTU5dv0Oq abTzrlvhQZLJ6tMZ6Qm7sQpYoqGiXVYD5okOdx5pYXF5ZkrbR0D2KGcBuvoiXhRaFAVl mm9XMidxqS1MuwHArglXHFZ5eDlcJMYa1ekDu5vji27AErbHCXZDvPZ/yvhJwKQ+z9EH axd09MfByzNRvUgYe2c8FihwLaDHnpG/jzET9TqCK4WyT56LsIfdvWnVN9G4i4OvJYEK p6pOIry5qjBIXH+rpcilvCCeOJ5t60GepLjTe7Mc13foBAolKIqz4+IllRREcTXEi8mO +7XA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=THz7IFy2; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-196322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f63233cde3si9979145ad.48.2024.05.30.23.08.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 23:08:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=THz7IFy2; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-196322-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196322-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A344DB24DBF for ; Fri, 31 May 2024 06:07:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF5527D3F1; Fri, 31 May 2024 06:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="THz7IFy2" 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 813957CF3A for ; Fri, 31 May 2024 06:07:14 +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=1717135636; cv=none; b=F4+PIM46cHWGO4ineVekGp/uTlW558Of0zLGi0uAOhT4bewYuoDCo+ZOnlEbMPVD5vcJTqhGjiDb+RDYB6Wz6EXwQ8T60JvU5MVH2AM9EGEDal/yy4bPRpZle2aWoLC8WSXqLuVNrut6uZE/7qQRQboBtALy2CL/fvZ7xieQ0nE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717135636; c=relaxed/simple; bh=EEX5ulwwTova+mQNBy+545y80BMsjEFJJXYmtCRaVYY=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:References; b=L73boiOPBQSmZ6QWZvAPMqkb+gMa1ZkCNCoWdr07MUvnAj4pYtQd/6IPMtDV6MhMI+uhbA8yu1LAAVzNVKx9Gm2HYjqSloYi7CPDHaEy9gtNnDUCm9NziZtXlIyAMMbT5JTnvOJiGNzhhRB5afMlrgTsg23lklAnuNTEyoygG/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=THz7IFy2; 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 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20240531060712epoutp010507fc947b5a6d30b57e086e5296df09~UfcKLBv7M2335923359epoutp01P for ; Fri, 31 May 2024 06:07:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20240531060712epoutp010507fc947b5a6d30b57e086e5296df09~UfcKLBv7M2335923359epoutp01P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717135632; bh=lKDV9Lg63LYuTqC7+tbrD7f1+q5993NJv6FjnUKs/Sw=; h=From:To:Cc:Subject:Date:References:From; b=THz7IFy2nHYFFR3BTFB/TlS2FhJKHD5b6Cuk+1wxEtEUtpm2Lm0fd/Afm4UjYP250 N7vz+A+OPJer58UZ/v2rtzRyTWRhA6Z1Eaw4KRs47vhDiJlk2HGk02YNm03+tgJ7mq Bls+MrQIMjUvqd6AKe4LfwIce8FqEAY0ABp1aQok= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20240531060712epcas2p4a524da1faec7f49395981565053453f1~UfcJz23Rv0235002350epcas2p4i; Fri, 31 May 2024 06:07:12 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.98]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4VrCM33HGPz4x9QG; Fri, 31 May 2024 06:07:11 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 0B.DA.09848.F0969566; Fri, 31 May 2024 15:07:11 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20240531060711epcas2p4ee3987a647f6a49b589b783d14ea25ae~UfcI87C_40235002350epcas2p4a; Fri, 31 May 2024 06:07:11 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240531060711epsmtrp2f1265052b4a1a10999a9ba9841fdb37e~UfcI8BjGk3234232342epsmtrp2T; Fri, 31 May 2024 06:07:11 +0000 (GMT) X-AuditID: b6c32a45-447fe70000002678-18-6659690f1003 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 8E.91.08336.E0969566; Fri, 31 May 2024 15:07:11 +0900 (KST) Received: from ubuntu.dsn.sec.samsung.com (unknown [10.229.95.128]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240531060710epsmtip17a0a62a25928b2871d00720bde6c2a94~UfcIwL4pd0050400504epsmtip1z; Fri, 31 May 2024 06:07:10 +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 0/5] usb: Add quirk for writing high-low order Date: Fri, 31 May 2024 15:07:32 +0900 Message-Id: <1717135657-120818-1-git-send-email-dh10.jung@samsung.com> X-Mailer: git-send-email 2.7.4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hidLYZ3o5KMdbW9t4VeMWVI7/JUU2Ipzkg01GIuKk4EAIf3qmCrAgAA X-CMS-MailID: 20240531060711epcas2p4ee3987a647f6a49b589b783d14ea25ae X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240531060711epcas2p4ee3987a647f6a49b589b783d14ea25ae References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: There's the limitation of Synopsys dwc3 controller with ERST programming in supporting separate ERSTBA_HI and ERSTBA_LO programming. It's supported when the ERSTBA is programmed ERSTBA_HI before ERSTBA_LO. But, writing operations in xHCI is done low-high order following xHCI spec. xHCI specification 5.1 "Register Conventions" states that 64 bit registers should be written in low-high order. Synopsys dwc3 needs workaround for high-low order. That's why I add new quirk to support this. --- Changes in v2: - add a quirk in dwc3 - add dt-bindings of dwc3/xhci - set the quirk in xhci-plat from dwc3 Link to v1: https://lore.kernel.org/r/1716875836-186791-1-git-send-email-dh10.jung@samsung.com/ Changes in v1: - add a quirk in xhci - use the quirk for programming ERST high-low order Link to RFC: https://lore.kernel.org/r/1716339839-44022-1-git-send-email-dh10.jung@samsung.com/ --- Daehwan Jung (5): dt-bindings: usb: snps,dwc3: Add 'snps,xhci-write-64-hi-lo-quirk' quirk usb: dwc3: Support quirk for writing high-low order dt-bindings: usb: xhci: Add 'write-64-hi-lo-quirk' quirk xhci: Add a quirk for writing ERST in high-low order usb: host: xhci-plat: Add support for XHCI_WRITE_64_HI_LO_QUIRK Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 5 +++++ Documentation/devicetree/bindings/usb/usb-xhci.yaml | 4 ++++ drivers/usb/dwc3/core.c | 3 +++ drivers/usb/dwc3/core.h | 2 ++ drivers/usb/dwc3/host.c | 5 ++++- drivers/usb/host/xhci-mem.c | 5 ++++- drivers/usb/host/xhci-plat.c | 3 +++ drivers/usb/host/xhci.h | 2 ++ 8 files changed, 27 insertions(+), 2 deletions(-) -- 2.7.4