Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp189650lqq; Wed, 12 Jun 2024 23:09:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8TweF0GhyoTl4CUgyoqWO2b+MGfBNtMh1DT6dIvMb53AIjKXl+ZYKCmqRCIDIFW8hINgrZYjGeiJpGdKNQxAzDmq68nyLBys3AGsG5g== X-Google-Smtp-Source: AGHT+IEZ8fz0ySqMQAbR5fFZ+wcp45dwz5/phBs3+IKlHyMBiEd+/iHSVy0Q446IyCAVCWPJi36R X-Received: by 2002:a05:6a00:c94:b0:704:3491:d753 with SMTP id d2e1a72fcca58-705bce43ae6mr5110036b3a.16.1718258982074; Wed, 12 Jun 2024 23:09:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718258982; cv=pass; d=google.com; s=arc-20160816; b=vY8AasuQ5maQI8edlwv/K2xsnc7tS3k9nEnb4UYel097oxSZ4Sp+1AjAtYdq+mYkCv UoUGVM9cNXZ9ZlLk4CnFKPISp/C7tIv242kK2bxh1MbzOv5J+rhEGOpBEDzAi2cO93HE fMnvxD58LhUplfLwIxBcdnCtXbcJWGKrvz8X/XCxzcDT4WWdDhoSH+fHuyTPnKDQ43In AkHUTNiphuxbq5gdiIWc4kNalbp5QoC/4duLDZTC7Fskb3kx1u0ZA+9WFTqG+7Os5dLS jZOVs52p13w5LJ1Y67uzoenPcVYe4wcy283IHIm015JpjdG/l2+KO9Iyynv21+F/vI99 xFcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=NE/vg/xtINSVNyCIAJBI4IRD7GcFriiod4JN9340Mcw=; fh=fCTvhvJd5+UP8lgM5ZbP4agUewa9MmiYz/KUCLiAqSM=; b=b9OTyLF5NoY7yCzXytod8IOqdtzVtxjtUXDWcPWi3Ciked5/cPsx5pU1Jb3xgYWhrC K8iRt4xZocnOsy5UJlvD2HdfUIOEnHsRWRAYX/vykPJD5Jv4tPmZE+CziAPvlrMgrxA4 ng64qYp6lQHKOuS0h9MXDv+SI2wY9g0dqzR0pxJJfpBQUBtQBaxKJp4+PdVWnflLkdkx apG7NIkBg1dzQfXO4JuuhXPoOjZbrbfvEPs+dt09is6BmMWUQaPvKpeYHtwIDM3U8l5H +KNmpRrL2dlHFqRrjm80NlbgSMtjNBHlaUxc7/cCFTBvEmO6Q3t1lBdnmqf6bLGrV+ih yAzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l+0pv7QH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212594-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb718c4si716751b3a.272.2024.06.12.23.09.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 23:09:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212594-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=@kernel.org header.s=k20201202 header.b=l+0pv7QH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212594-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212594-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 AAEE3281FEE for ; Thu, 13 Jun 2024 06:09:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7D9D136E15; Thu, 13 Jun 2024 06:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="l+0pv7QH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CD340135A4B; Thu, 13 Jun 2024 06:09:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718258968; cv=none; b=N0Dr9p54C4KgYxJGMdrQL3xDzM7Kti+jP+LMOmutNskEQ2eHkoAMAYXZJcWHKrzIV6D4SlczcxHnmVluIJGs+3QiYNENcC2tOzNbf/09m19kBKw1Ls7TQHpDATOMpMm+LwHfifMSUTzDblyu/pspegPtDQg7Mb96w5RPsmK4c/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718258968; c=relaxed/simple; bh=bbKEWwxPZT1MGbNUJwasQJFcX1zxr/x5+hhhJZnpu2k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=X2cyG1DGFmaCClM2fQrbs3raXtxbWTU+mI+xDskWq+P0lFZzrj3SYU8h7xlrLjQ8W3DsgF4hTptBeo5u9JF33Oua/MHCUyVlwOGTkIs6+BpPL8yKzFDzwyDlu4Ry+tiQoJ6DjVZgEwIoFJ45BW4xjIxuL9kLT1cEPuwxpBtQSOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=l+0pv7QH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92148C2BBFC; Thu, 13 Jun 2024 06:09:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718258968; bh=bbKEWwxPZT1MGbNUJwasQJFcX1zxr/x5+hhhJZnpu2k=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=l+0pv7QHW3Uo1aG1Nam8Rb0tUCcz94L4ehaSclgjQs0By5gn20C+2G3C/VSfpM6hU XTRg6JQaIuGV9tXr6N4QXUOL5TQKBlSfLy2k02D5lvBXMuH5p6FwPGAZpQJjPCQ5+9 r23/SEQLrdzzdAK4xK6d6Zvs83RZ0N1M4Ucg12mYTT6mNiZYlnwRWvGMbU/9qzqX28 gSQ/TPSShofnZ0WaVywtGDbYzkSep0O3ZRQD9CYbGJ0PCSY/4ahmN2LFj+RwY8l3n2 0BRgIqlCf7/x9r5DLlK9g1OwHtqjhFNWfnjyyLuf8PnUba8wzuVXeW7O5ZWO6Qvn3V hB/iAA3r57lMA== Message-ID: <3275676c-7392-47ac-8345-808681462003@kernel.org> Date: Thu, 13 Jun 2024 08:09:22 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2, 1/3] dt-bindings: usb: dwc3: Add snps,p2p3tranok quirk To: joswang Cc: Thinh.Nguyen@synopsys.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, balbi@kernel.org, devicetree@vger.kernel.org, joswang References: <20240601092646.52139-1-joswang1221@gmail.com> <20240603130004.25662-1-joswang1221@gmail.com> <9c665afe-16d7-469e-ac3e-d0d7388a31b7@kernel.org> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAA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Itt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 12/06/2024 16:28, joswang wrote: > On Tue, Jun 4, 2024 at 2:33 PM Krzysztof Kozlowski wrote: >> >> On 03/06/2024 15:00, joswang wrote: >>> From: joswang >> >> Is this your full name or known identity you want to use for all kernel >> contributions? Looks like login... >> >>> >>> There is an issue with the DWC31 2.00a and earlier versions >>> where the controller link power state transition from >>> P3/P3CPM/P4 to P2 may take longer than expected, ultimately >>> resulting in the hibernation D3 entering time exceeding the >>> expected 10ms. >>> >>> Add a new 'snps,p2p3tranok-quirk' DT quirk to dwc3 core >>> for enable the controller transitions directly from phy >>> power state P2 to P3 or from state P3 to P2. >>> >>> Note that this can only be set if the USB3 PHY supports >>> direct p3 to p2 or p2 to p3 conversion. >>> >>> Signed-off-by: joswang >>> --- >>> Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 7 +++++++ >>> 1 file changed, 7 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> index 1cd0ca90127d..721927495887 100644 >>> --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml >>> @@ -242,6 +242,13 @@ properties: >>> When set, all HighSpeed bus instances in park mode are disabled. >>> type: boolean >>> >>> + snps,p2p3tranok-quirk: >> >> Why this cannot be deduced from compatible? Which upstream SoCs are >> affected? >> >> >> >> Best regards, >> Krzysztof >> > > Thanks for your help in reviewing the code > DWC31_USB 2.00a and earlier versions IP bug, regardless of platform. So this can be deduced from compatible, then use quirks in the driver based on compatible and drop the property. Best regards, Krzysztof