Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp716445lqj; Sun, 2 Jun 2024 20:03:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxTmurCdZrm/Xwxq6d+hKrHJ2P2sI+AlxNtrSIDnabDFXrZEtOSDrsUEeYYxCMa7hVUxN68EVXWGBnZmEevTpHV3ul0bT2892xGvOGpw== X-Google-Smtp-Source: AGHT+IEIL6PKUcmrluZG94JwbK99bf/w5smMqxcADO2/O7EpQ5zRKiQtHN9dgQewgp5vfQ0VjFEA X-Received: by 2002:a05:6a21:7888:b0:1af:a2fa:e666 with SMTP id adf61e73a8af0-1b26f17d61emr7675398637.10.1717383786642; Sun, 02 Jun 2024 20:03:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717383786; cv=pass; d=google.com; s=arc-20160816; b=voWFAMAIF93/QgT5mZTplxOiYA825N7zoOuTIgb6emy8caoj17+Qf2ZiPVbupL2hoL D1srYMRKaeCBaTQ8u4dvJ/nz9rGHsrZ5InJH/VpvgDTTSv7QQgavpFKeHWa+IVxWg+D7 TOSjWTnfWTIxuHbGhuS7SFnhbHGX2GE1hhFD9IMlplKFsgVkK/bjpucTcGCW4pW+TLJw Bj6lEjVcpPJlgG/Tv1v3wXchddEN4OdMHUkU5HptxzZXu1KEHpa8aEjzKWxhQ5mFkaHh J3zzlyHGnc9hIwWeuaKbHnl0LzUpxY/CT8pA01WlqNXVX81NhjhV3CuMYUEviCnzvB7m C1MA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:user-agent:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id :subject:cc:to:from:date:dkim-signature:dkim-filter; bh=yK3jZ1lFIlSjHLzlsiqveDzMQX7tRJzrC//UtMKk/XM=; fh=IMoi6PwJCAH6mA7nkTv6ybGPThJ8QJtXuMS/Zn1N7p4=; b=OhmTR5r04ZrF+IyzaQv7kAD7u4vYnM/MeOh02R6JXRAUlRYP4UHjoYjcnwf5XFNVAa xbyKfENQwb/1orQDZeyoemKttEml6TuQhF/SVI/yMCx6c9b6cs7eRFJ7ScnhlM3iU5l8 CQQo1Cct57zZU38pXAhpyw0nE8TMby+3JHJTcvbWirxE7JYqbDHmH/2vkiDW2zLCqH+/ rbW4GBYQxtRBkIrTtrQQIgZ2mDAW5K8NhceoDSFRxWDrUU4uhhHqa8Idj3bp5C505sxA 93V0E9wEhpnNMtW3r1+p5VpOowIR53kAcSAtng+Pdi9fiItt4Ow2Zhl2CLHBszBYBE2b 0J9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qE692qp5; 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-198563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c24128c10bsi451180a91.124.2024.06.02.20.03.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 20:03:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qE692qp5; 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-198563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198563-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4118D281323 for ; Mon, 3 Jun 2024 03:03:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B56ADF9E6; Mon, 3 Jun 2024 03:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="qE692qp5" 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 AE0B2CA7D for ; Mon, 3 Jun 2024 03:02:53 +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=1717383775; cv=none; b=c7jM61zNyoJkDdmQvEaWO7gKJuDAqAkAhn8dgsMV6ZMWbu8dHGLJZALG3UEJudHLiuYpBWQrg1nEHYutSUpftqhcJ0/AdfKi4InbVaICrUOdz5jbqgoPXH1HoDk9y1BPRD3biVyWQ/dHi7kqXj0B8UskWxEbQRAjEe2iRNv24rA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717383775; c=relaxed/simple; bh=vwVBCpX/FGg3PfaBO0k1Rrx6BR58RpWVDue+Wtv72iM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:In-Reply-To: Content-Type:References; b=Wckn6WJ/RSDVL3ePGjDcIRUGzAI0GYANkNUH/T1YFliCg7b2NovB8PZ49U/LJiK4NfhiQ4+1JOTBgRNsl025gtFPj+6rmg52x55hnfv13IWAL0nBYckadGHw4WpzevROWHA3ekfYUqhjFC5VgTtb/DwU+bRWdr6vim/T+cvLSRI= 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=qE692qp5; 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 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240603030245epoutp03864e8e8c941fe331c78dbae5f576132c~VX2_RPY2u0705507055epoutp03Z for ; Mon, 3 Jun 2024 03:02:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240603030245epoutp03864e8e8c941fe331c78dbae5f576132c~VX2_RPY2u0705507055epoutp03Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717383765; bh=yK3jZ1lFIlSjHLzlsiqveDzMQX7tRJzrC//UtMKk/XM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qE692qp5FBH4Efpx9UDxyAKk30uphGAKDEuY87V5CZXJjKVs3HTr7xlSngYJO1RRh qf9kNH9Lpxsds72aYaqHUvYTylJ/rFdv5PKWbTHTXB1CkVqH8ynMGGDTSopnOvOeCW 6QRQPRMFuud7BndAZpTZBBuvhlwUlMwbCv6N8TfM= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20240603030244epcas2p324a0b3f1044706420d7c96cba5066b1e~VX29mm9Vi3054930549epcas2p3D; Mon, 3 Jun 2024 03:02:44 +0000 (GMT) Received: from epsmgec2p1.samsung.com (unknown [182.195.36.98]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4Vsz6r2rtxz4x9Ps; Mon, 3 Jun 2024 03:02:44 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmgec2p1.samsung.com (Symantec Messaging Gateway) with SMTP id C9.5C.08613.4523D566; Mon, 3 Jun 2024 12:02:44 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20240603030244epcas2p47cc72b4243f0194b42115e54affe0b5b~VX28yFCXH1328313283epcas2p4k; Mon, 3 Jun 2024 03:02:44 +0000 (GMT) Received: from epsmgmcp1.samsung.com (unknown [182.195.42.82]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240603030244epsmtrp1722f2265e8d92a321dddb0543e208a8d~VX28xTb5V1562215622epsmtrp1W; Mon, 3 Jun 2024 03:02:44 +0000 (GMT) X-AuditID: b6c32a43-af7ff700000021a5-48-665d32548095 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmcp1.samsung.com (Symantec Messaging Gateway) with SMTP id 69.54.18846.3523D566; Mon, 3 Jun 2024 12:02:44 +0900 (KST) Received: from ubuntu (unknown [10.229.95.128]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240603030243epsmtip2da4b384bf41932d59d6bdfc2f88061c8~VX28nFVST0472404724epsmtip2d; Mon, 3 Jun 2024 03:02:43 +0000 (GMT) Date: Mon, 3 Jun 2024 12:03:16 +0900 From: Jung Daehwan To: Krzysztof Kozlowski Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Mathias Nyman , Felipe Balbi , "open list:USB SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH v2 1/5] dt-bindings: usb: snps,dwc3: Add 'snps,xhci-write-64-hi-lo-quirk' quirk Message-ID: <20240603030316.GA23593@ubuntu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <57966949-8080-4aa5-8d38-63ded1c2b467@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFJsWRmVeSWpSXmKPExsWy7bCmhW6IUWyawbaVwhbH2p6wW6zZe47J Yv6Rc6wWzYvXs1m8nHWPzeL8+Q3sFpd3zWGzWLSsldmiedMUVov/e3awW6xacIDdgdtj8Z6X TB6bVnWyeeyfu4bdY8v+z4wenzfJBbBGZdtkpCampBYppOYl56dk5qXbKnkHxzvHm5oZGOoa WlqYKynkJeam2iq5+AToumXmAJ2mpFCWmFMKFApILC5W0rezKcovLUlVyMgvLrFVSi1IySkw L9ArTswtLs1L18tLLbEyNDAwMgUqTMjOuD6hl6VgAX/F8y1GDYxHeLoYOTkkBEwkXj5fy9zF yMUhJLCDUWL/l+WsIAkhgU+MEkd/VkMkgOzFy54wwXS8PvMLqmMno8STh7NYIZwnjBIrL3xn A6liEVCR6D+9gx3EZhPQkrj34wQziC0ioClx/e93sAZmgTvMEpPWnQBrEBZIlXh9rBtsBa+A tsTjvbvZIGxBiZMzn7CA2JwCdhJHVtxg7GLk4BAFWvDqYD3IHAmBiRwST17MZQWJSwi4SJz+ xApxqbDEq+Nb2CFsKYmX/W1QdrHErefPmCF6WxglVrxqYYZIGEvMetbOCGIzC2RIzNjYzQwx U1niyC0WiDCfRMfhv+wQYV6JjjYhiE5liemXJ0CtlZQ4+Poc1EQPiSWHV7JBwqebSeLh8jWM ExjlZyH5bBaSbRC2jsSC3Z/YZgGtYBaQllj+jwPC1JRYv0t/ASPrKkax1ILi3PTUZKMCQ3hc J+fnbmIEJ1ot5x2MV+b/0zvEyMTBeIhRgoNZSYS3ry46TYg3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akFsFkmTg4pRqYsm5nr7sT0Pu4uEpIu5nr56fX/yQS0s6HN61Jkn5mKHlrX6eVfGbn7EOT 7kxVY9/P0Or3Lj/3Jfvka42C7bqrryidvXInUOGpGzNvyg8p7VK19z8SS2YnRS53/L1MUYDb SEry1NLE1F3nv73lW+kkc+O08yTlO33ZzGnbko9GTfTKnHD1LcecD5qnpULvXbHafumrdsPH v6K6La23LyWIPCuc5PXTpiNi3v7Vuzo/iq8qyVq7eH9aPZOah9rbmQfz4vm+iksm25zrb5yX eij5srff9sfP7vreU3jVtfOS+rVHfRZpa5/PuOt3qtzrSOekrxMD70XO+X3spVsy3/V3ugfd e4SexUlONe+5mW67QYmlOCPRUIu5qDgRABfQEQ4AAwAA X-CMS-MailID: 20240603030244epcas2p47cc72b4243f0194b42115e54affe0b5b X-Msg-Generator: CA Content-Type: multipart/mixed; boundary="----NM.SL-8AX4fCWwUaz12YupYcgI_4q5PcTQ1CNbbJhqicWcnv=_372cf_" 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> <1717135657-120818-2-git-send-email-dh10.jung@samsung.com> <57966949-8080-4aa5-8d38-63ded1c2b467@kernel.org> ------NM.SL-8AX4fCWwUaz12YupYcgI_4q5PcTQ1CNbbJhqicWcnv=_372cf_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Fri, May 31, 2024 at 10:10:30AM +0200, Krzysztof Kozlowski wrote: > On 31/05/2024 08:07, Daehwan Jung wrote: > > Add a new quirk for dwc3 core to support writing high-low order. > > This does not tell me more. Could be OS property as well... please > describe hardware and provide rationale why this is suitable for > bindings (also cannot be deduced from compatible). > > Hi, I'm sorry I didn't describe it in dt-bindings patches. It's described in cover-letter and other patches except in dt-bindings. I will add it in next submission. I've found out the limitation of Synopsys dwc3 controller. This can work on Host mode using xHCI. A Register related to ERST should be written high-low order not low-high order. Registers are always written low-high order following xHCI spec.(64-bit written is done in each 2 of 32-bit) That's why new quirk is needed for workaround. This quirk is used not in dwc3 controller itself, but passed to xhci quirk eventually. That's because this issue occurs in Host mode using xHCI. Below are answers from Synopsys support center. [Synopsys]- The host controller was design to support ERST setting during the RUN state. But since there is a limitation in controller in supporting separate ERSTBA_HI and ERSTBA_LO programming, It is supported when the ERSTBA is programmed in 64bit, or in 32 bit mode ERSTBA_HI before ERSTBA_LO [Synopsys]- The internal initialization of event ring fetches the "Event Ring Segment Table Entry" based on the indication of ERSTBA_LO written. Best Regards, Jung Daehwan > > Best regards, > Krzysztof > > > ------NM.SL-8AX4fCWwUaz12YupYcgI_4q5PcTQ1CNbbJhqicWcnv=_372cf_ Content-Type: text/plain; charset="utf-8" ------NM.SL-8AX4fCWwUaz12YupYcgI_4q5PcTQ1CNbbJhqicWcnv=_372cf_--