Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1710967rwb; Fri, 12 Aug 2022 05:47:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6coayniE1j9guDMPb6YdajiUbX2UPXv1qqtJaU2tHA5MsPO/ZiCeiouR0/ePtBExxiQ72g X-Received: by 2002:a63:90c8:0:b0:41b:bcab:2c93 with SMTP id a191-20020a6390c8000000b0041bbcab2c93mr2978148pge.420.1660308442965; Fri, 12 Aug 2022 05:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660308442; cv=none; d=google.com; s=arc-20160816; b=bWmSxYrJPSmF56Vp3dLvxGXFOxVYnmNY7jgy2RtNH0wwjdwthqsR3nkaJWhLm1Z10y x+NTmXVmoMmWQLmqJlq5Q8BuyAMk9NmQWbJzrE72MmAoFBxomP51ERJsRpjAtC+KObeP 90DK/VU2R6nq0yqh6U+GemlDNaksV++m15kQJMxTMDIm90ZF8yD95XAlXsph9LD9mYcT /2RDW+9R/xWnbRvzW/LdUuXyZEYqQd820ZetV2Z7903aBaZeeuaq7b/drlVbGzBqCg6p 9wPnwOk9B5W+XAO+rB+mKO87BOuOqKqEFk1pKjfW2AE9Z/4uyYXqarS7rRwZyNiDASzR acVw== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2Tr6s6oL+tsJZTa2fS1ZrFcsPmdVMztbv0oSJXbRlXA=; b=cTdTJH8liLqiU9OJpuoYhcGOLhFRT2L3FOjQ/tTmRkZw0ms9cmvUMaWw7lpk1nMO2U Pkolzuoikfzg/6twGwE2VP82N/wJk/2wj9rbr6K6736SKlgclnwBbVmV/BUgmOYpXjM3 i2BecqasTR+TfS7BGf1qs6Tu4gvCj71nsUJQqiQO1sSqREjE6f0acf9xxb7CAN4fkNQ4 t9R14eqJuRsAir1B3Mun52/sAGZyuXXWmXI3R7ktZJjHNI1g1CSHVF0FEI0w5u6g528W arfu/0+cjYJiKJJq1heYl6M1olRp3Y1asrlGF3PxEP6LMbMmcc3ifEKUVQErhz+8pLCT pZPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FwnpfPvU; 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 y1-20020a62ce01000000b00532130277a3si2558333pfg.37.2022.08.12.05.47.08; Fri, 12 Aug 2022 05:47:22 -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=FwnpfPvU; 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 S237856AbiHLMgx (ORCPT + 99 others); Fri, 12 Aug 2022 08:36:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237927AbiHLMgv (ORCPT ); Fri, 12 Aug 2022 08:36:51 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C17F8A50C1 for ; Fri, 12 Aug 2022 05:36:49 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id l21so833296ljj.2 for ; Fri, 12 Aug 2022 05:36: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:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=2Tr6s6oL+tsJZTa2fS1ZrFcsPmdVMztbv0oSJXbRlXA=; b=FwnpfPvU0mr6T2+sNySqjij72Ea3ibh6EfoI4nRmF2+EnuB4vPoGgl0XCl9+/I8zJS MeusBGqCgyx77QPPt26Y3P4E/yihI+MwKoWf5sMolOoUivOpBqkomTiOAPAkkOqEVWDx /dauYc/ZSD2Div6Im4iBUaka1PSIzemPTCy8FcbYoVK7T83VgCxVNrWWO7c2i6b0mMOZ E+rsvY/NK8O12PrSuXu9u7eMBeq5bB07/2fipqaqPbYDYPmle8p5r8BRGpWUPSPtf4vn SWgLg3IzHEoSm9nf3QXfyo7tFWzSFBf6theP2tmI8W8UyD1LTOjXR4xryxU0o/KJ8dLK DW2w== 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:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=2Tr6s6oL+tsJZTa2fS1ZrFcsPmdVMztbv0oSJXbRlXA=; b=y7qYEfqSC/ykJPj1UJqE4tEXWW7wGxKz9HWkdObPmcsU021zXvf/YQ1/y+qDQwgC4L LavtHuwJU6uGtn/W0MlR5gKgBgTMLFHk0Uj3Yrc/M8YLjmU02v0dQs0N0tkga4vnATYC HB/8nhuulmQiCE/hJTT5G+mW/rWKguZ4c11Bjk0jogfJ799lnRGVCc/r5j4LL4hxCkoQ 0BpQXbH8IznaHLTlwfuk3Rv9aGzxQwqWQ5e/n9tDy5ak2AoFRedzjHyVHGHsj/0fVboX ygMrlcyepVMHqTkVysJMRyPyXx+VemuBcyxBAASR/CL2hDwZ0QG9m7AaV845KOOOmPi4 GLQw== X-Gm-Message-State: ACgBeo0pSgUxW4b8aQWVlPNdM358ZLDgzhtjR98a0C+n3iaZs9SIIpsX urplEWLQgGT4iGpcjjHzrohC+g== X-Received: by 2002:a2e:712:0:b0:25e:c39b:45cf with SMTP id 18-20020a2e0712000000b0025ec39b45cfmr1196685ljh.511.1660307807962; Fri, 12 Aug 2022 05:36:47 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id f14-20020a05651232ce00b0048b2a5a65d0sm198830lfg.256.2022.08.12.05.36.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Aug 2022 05:36:47 -0700 (PDT) Message-ID: <01021dde-106c-5660-ea96-a8b8fd89ad50@linaro.org> Date: Fri, 12 Aug 2022 15:36:43 +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: "Russell King (Oracle)" Cc: Wei Fang , "andrew@lunn.ch" , "hkallweit1@gmail.com" , "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> <14cf568e-d7ee-886e-5122-69b2e58b8717@linaro.org> <4cf8d73e-9f14-fe8d-d6e2-551920c1f29e@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 15:30, Russell King (Oracle) wrote: > On Fri, Aug 12, 2022 at 03:04:41PM +0300, Krzysztof Kozlowski wrote: >> I did not propose a property to enable hibernation. The property must >> describe hardware, so this piece is missing, regardless whether the >> logic in the driver is "enable" or "disable". >> >> The hardware property for example is: "broken foo, so hibernation should >> be disabled" or "engineer forgot to wire cables, so hibernation won't >> work"... > > From the problem description, the PHY itself isn't broken. The stmmac > hardware doesn't reset properly when the clock from the PHY is stopped. There is nothing like that in the property name or property description. Again - DT is not for describing driver behavior or driver policy. > That could hardly be described as "broken" - it's quite common for > hardware specifications to state that clocks must be running for the > hardware to operate correctly. > > This is a matter of configuring the hardware to inter-operate correctly. > Isn't that the whole purpose of DT? > > So, nothing is broken. Nothing has forgotten to be wired. It's a matter > of properly configuring the hardware. Just the same as selecting the > correct interface mode to connect two devices together. I just gave you two examples what could be written, don't need to stick them. You can use some real one... Best regards, Krzysztof