Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5463995rwb; Wed, 17 Aug 2022 18:52:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR6TsG1za3AXN6g4w/uEU1jwVZ4bzlR3nlYZwFMqwmkZuXQmlZVQQySUvwgyKQJGG5BiLlvN X-Received: by 2002:a63:484a:0:b0:42a:1a4:517e with SMTP id x10-20020a63484a000000b0042a01a4517emr234965pgk.86.1660787524556; Wed, 17 Aug 2022 18:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660787524; cv=none; d=google.com; s=arc-20160816; b=xUET9TyEhD6SmRGnKnOrZlneW3ExlcZ/3qS3V5ehpPinopGX3v4OfqDtb7FVPX93MX jjnZBIlu86rhO9zlXLxWEDJSes8CVM36UoTcpl7Be2dB6O/LSAHt1AWqgoDExfqAGEa9 fDAAR3jWpPzZfzp9PblcO71eCs6pEsYUqMkbQU6yVxIhoklEJDbPjCEQadizb4ppuhgP xEAMjXK4ptqJTYsy9/I3OF+XXtuk31HfCtAEIx97IRQOukFssRkGYRaeOI3RRlk6i5P3 GUzhOJ65HWz1aLhxAZFlXKsON4NhlZuvPMZjft4LPyJBlZT5qdgdjC2jgtK8MHb77MD4 kqkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=v/ogUYGKhlL5A9QYZicl3oguBuH01CMBW+H2SPHWlcY=; b=01C//PtYeQVGBrxtIxgEQ2nuW9RcG4MUYPk5HWt+9EfcuRKGyoT/qjzbCg4Wyaqs/D 7MlqE7GIVgZsvTkm1kBwcHhgo6TKKP99qM8aNlcoQWRWdIRKhJRIQw1Vnwh364KqWLDC dComOmI1efDRCJrVvh4M/dBZBJdnBm/tbckVMpx7u3Cm6GT9+B61n7QgTy9l8UBBtAcY zSFmej+A60cEyoyEwUjkPYHpGjaL8W4XU2BNGO+TXU+jUvoErv7APCNdiQyGW1F1hKif qhNIwrKynnYGnBooCBLy4B7l1/yqRFjPiREx+3M3sjHOy0ZGdRrVEKZjZBnjEUK9P2lS xrQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=OjN4bS21; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020a170903111000b001712e1f6d21si243639plh.15.2022.08.17.18.51.53; Wed, 17 Aug 2022 18:52:04 -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=@lunn.ch header.s=20171124 header.b=OjN4bS21; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242608AbiHRBoj (ORCPT + 99 others); Wed, 17 Aug 2022 21:44:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235733AbiHRBoi (ORCPT ); Wed, 17 Aug 2022 21:44:38 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6A83A1A74; Wed, 17 Aug 2022 18:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=v/ogUYGKhlL5A9QYZicl3oguBuH01CMBW+H2SPHWlcY=; b=OjN4bS215lSgFfYMQQiD3ZiDze 7k8YW41eft49l+Dspmjw/tCXJ1EXjQ+93EpaLaPeufaEe+x0TEn7W/ompuH8pSBzfnGMAQkAn61JH vCMSIvfftE40xU49pcEuZPQHjIqSAABOhHB8f/zAK7RSbFOQuv3+n44TcwXfZpmdprfU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oOUa9-00Dgfw-Hb; Thu, 18 Aug 2022 03:44:25 +0200 Date: Thu, 18 Aug 2022 03:44:25 +0200 From: Andrew Lunn To: Wei Fang Cc: "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 Message-ID: References: <20220812145009.1229094-1-wei.fang@nxp.com> <20220812145009.1229094-2-wei.fang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 > Yes, after the PHY enters hibernation mode that the RX_CLK stop ticking, but > for stmmac, it is essential that RX_CLK of PHY is present for software reset > completion. Otherwise, the stmmac is failed to complete the software reset > and can not init DMA. So the RX_CLK is more than the recovered clock from the bit stream on the wire. The PHY has a way to generate a clock when there is no bit stream? To me, it sounds like your hardware design is wrong, and it should be using the 25MHz reference clock. And what you are proposing is a workaround for this hardware problem. Anyway, i agree with Russell, a DT property is fine. But please make it clear in the binding documentation that disabling hibernation has the side affect of keeping the RX_CLK ticking when there is no link. That is probably what people want this for, not to actual disable hibernation. Andrew