Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5451024rwb; Wed, 17 Aug 2022 18:30:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR68z+JJn+m8WEspSb8s/onH+LSAxjKjmwKkT7znxfIkY9OAD8dAW54traDYb63eIODRPoi0 X-Received: by 2002:a17:907:28d4:b0:730:9d69:6801 with SMTP id en20-20020a17090728d400b007309d696801mr404438ejc.93.1660786228235; Wed, 17 Aug 2022 18:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660786228; cv=none; d=google.com; s=arc-20160816; b=rBbV+KvKCEkkA4mzMEdr82v90YcEpCisZaZk7sL0WLzp1PimWccU9dDMMVtcf2EwZl UaZc9Vv66CvNYkD/CEeXtEEeds1T91vs2XrlFe24ph/Xc8dXsKGeU7SCyJlKGnyvrhjE 0j79Hn7jfWlt0dyRfAb25kg6Z92vrnZ3kZlE5OjJrHsms0Be1QwO0JhNnsh4M1J/d/92 vDNFOnhxosNxklsA5ooDSxpvg2CxRKijXhwfgOhijaYAxNg9AL/OMo4HPezJMCcS1w20 ectVoQ0uG2y6rhglSq8nZxYx6jooDQ/d/KaDrOsGLJRZmVJY6cAiiKvi/B7h12MDHApd k8bQ== 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=1wjNnEeWUlQ11d/DDSaV1am9RVfAubnHe8nnYNJpOAw=; b=cDQJUc0p5KcKUiBHNVdwLBMowhEgIagWtwKtVOsRo0T3UybGC85UpsaA/Maj4Mu5Re 4V4nqzYmaomaEtHXnmNQxE2LJfCcfGhaMDfJfiJjVn9Yf0Z7Ww8R1oVWx5s8evu9eMKC 0Ed9fx0xInAlzIUR8ZZEjtSf+w0BMrjrMMean3Nf4HByJhbDsygnDJdwJWka4Jn9lGi8 vGVJeTVbnMCd8hfc2/vjqCeDq8fu7u42qdlLfOedzAKKMeJy+moUyJde0Uo/R7dG/Gas bf/O2G5nyW9R6XvigbHyUJ9kKBpwgrocyq+33vRVFwQwiWN65tOv18zTSMzHY+9Dxa+T KEOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=miOb4XZu; 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 kd5-20020a17090798c500b007391106f217si42968ejc.1000.2022.08.17.18.30.01; Wed, 17 Aug 2022 18:30:28 -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=miOb4XZu; 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 S242544AbiHRBUY (ORCPT + 99 others); Wed, 17 Aug 2022 21:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231627AbiHRBUV (ORCPT ); Wed, 17 Aug 2022 21:20:21 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3069F9C2D4; Wed, 17 Aug 2022 18:20:20 -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=1wjNnEeWUlQ11d/DDSaV1am9RVfAubnHe8nnYNJpOAw=; b=miOb4XZuseYEdMTWbsL+Kt8p38 lSKwWOMnNOj26DexFexCKZY/z4OQTmdQmoqUX80Y98C6xn3zfRspyUoA7NMduLU9P0rr4AsftzTrZ 1QXm7X2wI2/rDn2VhMVNApabtaq39PMeeb629xgLdEJycITLY62uhEcK8ZuI7zkM+a70=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oOUCY-00DgZC-7A; Thu, 18 Aug 2022 03:20:02 +0200 Date: Thu, 18 Aug 2022 03:20:02 +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 > Hi Andrew, > > Your suggestion is indeed an effective solution, but I checked both the datasheet > and the driver of AR803x PHYs and found that the qca,clk-out-frequency and the > qca,keep-pll-enabled properties are associated with the CLK_25M pin of AR803x PHYs. > But there is a case that CLK_25M pin is not used on some platforms. > Taking our i.MX8DXL platform as an example, the stmmac and AR8031 PHY are applied > on this platform, but the CLK_25M pin of AR8031 is not used. So when I used the method > you mentioned above, it did not work as expected. In this case, we can only disable the > hibernation mode of AR803x PHYs and keep the RX_CLK always outputting a valid clock > so that the stmmac can complete the software reset operation. What happens to the RX_CLK when you unplug the cable? It is no longer receiving anything, so i would expect the RX_CLK to stop ticking. Does that cause problems for the MAC? Andrew