Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1630187rwb; Fri, 12 Aug 2022 04:27:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6LCoAaQxPXdulhwxJwaadvRPj/mg4qLgwkfSBtCpFG88cAyqucyhJ3tWvBEugSyuCguaJh X-Received: by 2002:a17:902:f68d:b0:16f:2314:7484 with SMTP id l13-20020a170902f68d00b0016f23147484mr3441653plg.136.1660303674444; Fri, 12 Aug 2022 04:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660303674; cv=none; d=google.com; s=arc-20160816; b=wLR6otrvgpya7wFn7StiOgwOv1z7M9tK305BiBPtK+fuMA/hQozmMfS/o9QUrudDF5 o7L5OsLxgCvW2bHH6HJTYa5ew/ttGG8QY1vVA/7zxBP2MUxOUn+BXurIbFhhvGQa3dun 7vYJGgVb09RJvuepORihGFlJv8k4oPFoasAThdGO/c+x99VSy2c/jUuHIjRI4F3YbJKo HRDXm3wUc1oLRpMwU9qzBIKalYmMZdxFk8fy6bjjUgVS0nKhgsDiCvuHs1hm9ujIFt2v mwlkHt9h2MvriXNXLndeBAa6zMzpdeK0gjQuqEnhNry21ejQehVBgFTPaOzelzTDhJqK xGjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=CicaxzhBFo0KPREhpr4TXcueTsn2K/vZuDdXuzYsKWU=; b=QqvR35XDujlBIZPzMU9mHVex5VZQwV6i9Iz6HOmRP5LJ9hKlYW0DS4aQOq/0CzgWgj /YIsiAAGUm2TvKBqQ8QiNb4VocW2fMPfThTzA4TDYH0mHn5YF9TiYYr5zMos2zY/UjbU iyS7WLmos3ctDOAfbLsBiBZxq9C2L+apcjLRUtSidZzAwqxrepfCDcoeQMWkQWAjxkT5 heeYsxGJ+pN3H5yqq3WArwfpOMH37bcUFiHJcqWd6Meeonc+jjugDeOUKUPQvltt62pK 3DGBDRLSDZlmbSmO79Jq1OpiUlnSnMrqsaUnqmRMbKC1TOX3dAu+J0B/8y+52WhBIoIJ 3dLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZSjkS3G5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd33-20020a056a0027a100b0052d54904ec6si2189144pfb.76.2022.08.12.04.27.40; Fri, 12 Aug 2022 04:27:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZSjkS3G5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236856AbiHLLZy (ORCPT + 99 others); Fri, 12 Aug 2022 07:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232206AbiHLLZu (ORCPT ); Fri, 12 Aug 2022 07:25:50 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBA162C100 for ; Fri, 12 Aug 2022 04:25:49 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id c17so953303lfb.3 for ; Fri, 12 Aug 2022 04:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=CicaxzhBFo0KPREhpr4TXcueTsn2K/vZuDdXuzYsKWU=; b=ZSjkS3G57jOr2ZUgBUg647LpswyGyUyOyxiv0qFWeuWeUxKsfjmjUXDseiTfsQeItA C7ge0PECV1KDT/YzTpu722jyDhSyTkdFC9Tz1gGtysf3KxHqSztEfFLFt2lBu7DmBQo4 is0MZePlBzlABtDsifedY/+Z3wAkjtKPZ+7kvVg62lftbaHeyB2zFH0GKgXkK/osYma0 KMRoFx5V+/YgxcE2CHqMv/q1MXffwjHDhg7RRANtqkqntp+ZcsYIkO2B6lSFUrO0jcxl nUp2kC2MVEEazP4SXMIreFRMBeyz+1HSNrbsCona9am1KL+dpyWbCzXSVezdHj/fIpqp rNCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=CicaxzhBFo0KPREhpr4TXcueTsn2K/vZuDdXuzYsKWU=; b=Fg4KazbqC7QlQ9UYPVsegUBcLiFTqLw0ilmMMY6Wp68Wla53DNWmI/Qfi/y8A0CbO6 WCFXKo9+rDVIgBK29KmUfAbZGJ68ry4jfaGUFreuroktGHbDyuyVCz3YDO28vqJ51S6f OwFqmxM5fopQbicHOC9Xpi5bDX+48fGt6kDC+NJctHIqWKhorrHM62HX0ZEw8afn+m8V YNOJiFjvRxGNqr5cGRdbaIhXja6xIyOw5wWrZZgga8IuhwXL0GA0EGU2L+WtpRtkundi 9N/eZXtFtX16vs4OseoKBkDXYj3pYr4DcP8b2ujfndFL2eQGuXWWnoVltK413tA0jwed Y3cQ== X-Gm-Message-State: ACgBeo3vIB0rW2AmEtEtRsHyDbUmfTXmkycwaG9BlhOsnuv9xjn1QC4Y c0z4dOTrEe0n8RT67scn2yRTJA== X-Received: by 2002:ac2:4f03:0:b0:48a:6061:bd8e with SMTP id k3-20020ac24f03000000b0048a6061bd8emr1247397lfr.647.1660303548058; Fri, 12 Aug 2022 04:25:48 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id b20-20020a196714000000b0048a9a756763sm188699lfc.19.2022.08.12.04.25.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Aug 2022 04:25:47 -0700 (PDT) Message-ID: <14cf568e-d7ee-886e-5122-69b2e58b8717@linaro.org> Date: Fri, 12 Aug 2022 14:25:42 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH net 1/2] dt: ar803x: Document disable-hibernation property Content-Language: en-US To: Wei Fang , "andrew@lunn.ch" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "f.fainelli@gmail.com" , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20220812145009.1229094-1-wei.fang@nxp.com> <20220812145009.1229094-2-wei.fang@nxp.com> <0cd22a17-3171-b572-65fb-e9d3def60133@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/08/2022 12:02, Wei Fang wrote: > > >> -----Original Message----- >> From: Krzysztof Kozlowski >> Sent: 2022年8月12日 15:28 >> To: Wei Fang ; andrew@lunn.ch; hkallweit1@gmail.com; >> linux@armlinux.org.uk; davem@davemloft.net; edumazet@google.com; >> kuba@kernel.org; pabeni@redhat.com; robh+dt@kernel.org; >> krzysztof.kozlowski+dt@linaro.org; f.fainelli@gmail.com; >> netdev@vger.kernel.org; devicetree@vger.kernel.org; >> linux-kernel@vger.kernel.org >> Subject: Re: [PATCH net 1/2] dt: ar803x: Document disable-hibernation >> property >> >> On 12/08/2022 17:50, wei.fang@nxp.com wrote: >>> From: Wei Fang >>> >> >> Please use subject prefix matching subsystem. >> > Ok, I'll add the subject prefix. > >>> The hibernation mode of Atheros AR803x PHYs is default enabled. >>> When the cable is unplugged, the PHY will enter hibernation mode and >>> the PHY clock does down. For some MACs, it needs the clock to support >>> it's logic. For instance, stmmac needs the PHY inputs clock is present >>> for software reset completion. Therefore, It is reasonable to add a DT >>> property to disable hibernation mode. >>> >>> Signed-off-by: Wei Fang >>> --- >>> Documentation/devicetree/bindings/net/qca,ar803x.yaml | 6 ++++++ >>> 1 file changed, 6 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/net/qca,ar803x.yaml >>> b/Documentation/devicetree/bindings/net/qca,ar803x.yaml >>> index b3d4013b7ca6..d08431d79b83 100644 >>> --- a/Documentation/devicetree/bindings/net/qca,ar803x.yaml >>> +++ b/Documentation/devicetree/bindings/net/qca,ar803x.yaml >>> @@ -40,6 +40,12 @@ properties: >>> Only supported on the AR8031. >>> type: boolean >>> >>> + qca,disable-hibernation: >>> + description: | >>> + If set, the PHY will not enter hibernation mode when the cable is >>> + unplugged. >> >> Wrong indentation. Did you test the bindings? >> > Sorry, I just checked the patch and forgot to check the dt-bindings. > >> Unfortunately the property describes driver behavior not hardware, so it is not >> suitable for DT. Instead describe the hardware >> characteristics/features/bugs/constraints. Not driver behavior. Both in property >> name and property description. >> > Thanks for your review and feedback. Actually, the hibernation mode is a feature of hardware, I will modify the property name and description to be more in line with the requirements of the DT property. hibernation is a feature, but 'disable-hibernation' is not. DTS describes the hardware, not policy or driver bejhvior. Why disabling hibernation is a property of hardware? How you described, it's not, therefore either property is not for DT or it has to be phrased correctly to describe the hardware. Best regards, Krzysztof