Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA337C54EAA for ; Tue, 24 Jan 2023 14:37:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234988AbjAXOhO (ORCPT ); Tue, 24 Jan 2023 09:37:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234980AbjAXOhJ (ORCPT ); Tue, 24 Jan 2023 09:37:09 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15B7A47EEB; Tue, 24 Jan 2023 06:37:06 -0800 (PST) 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=r425jgf+TXP+xDahnxt/a82STzim4/YC2+1KX8tTGWc=; b=SjsqaHLl0V14G9O4RZ5WcQziky rphRQw0gw/HP910yQ7MzpXAL26OJqaUI6VF2IYib0+kTRRwUhUd5zxmaQFe/dklDdV7bW6VRWb+QW iAK7zJw5K5oeYk+4ww9pJNIXdbIHNdnbSKd0kjIEYufFABCYLyYtSOnjzHSDeXnrdGEo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pKJzi-0031R4-TU; Tue, 24 Jan 2023 15:09:50 +0100 Date: Tue, 24 Jan 2023 15:09:50 +0100 From: Andrew Lunn To: Andrey Konovalov Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, alexandre.torgue@foss.st.com, peppe.cavallaro@st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 0/2] net: stmmac: add DT parameter to keep RX_CLK running in LPI state Message-ID: References: <20230123133747.18896-1-andrey.konovalov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Could > > dwmac-qcom-ethqos.c just do this unconditionally? > > Never stopping RX_CLK in Rx LPI state would always work, but the power > consumption would somewhat increase (in Rx LPI state). Some people do care > about it. > > > Is the interrupt > > controller part of the licensed IP, or is it from QCOM? If it is part > > of the licensed IP, it is probably broken for other devices as well, > > so maybe it should be a quirk for all devices of a particular version > > of the IP? > > Most probably this is the part of the ethernet MAC IP. And this is quite > possible that the issue is specific for particular versions of the IP. > Unfortunately I don't have the documentation related to this particular > issue. Please could you ask around. Do you have contacts in Qualcomm? Contacts at Synopsys? Ideally it would be nice to fix it for everybody, not just one SoC. As for power consumption, EEE is negotiated. You could look at the results of autoneg, and only enable this workaround if EEE is actually part of the resolved results. And maybe look into the clock source, and only enable this work around if the PHY is the clock source. Andrew