Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1845265rwo; Thu, 3 Aug 2023 00:03:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlGJ9qY7e+9fckDBxphScKBcHoGzWZ63aXWEknFCm/4Vz+1XBj++u5WysDXEPyHGoGo4tmA6 X-Received: by 2002:a17:90a:4149:b0:268:1def:221c with SMTP id m9-20020a17090a414900b002681def221cmr14731651pjg.45.1691046224097; Thu, 03 Aug 2023 00:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691046224; cv=none; d=google.com; s=arc-20160816; b=iY/0OpiGCfz2ftC2PEUIph537yy4N5eUDZvP+quSLlic4KrZnnvn8fLtIvouVHANKe vnK/KXJi+ejK/jbL1Lo2Y0fz0poRKe1o8Dxsb+gbiEyZRbXhAVPkNk3/YwmBMKZtEVMz CCiz3ye+lu5e9TURXfuYO6x9s7vfEirevEWeNzETWoGXztQM1rVZODvNh30Em5hNEtt+ BnMgeAvYne/jAqQII73kvTqOuUAsEEueeDcunDSqlGOVRyJpmis1w/OZgin17QCc8Nh7 /nvV14Tb9CHUV0SqUo63ErhWJ0Yy1QvgRqeq25rj9y0q+Ludw9WkroFPVPKdYZUIu+AB 6jIA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=u0BqwSgjV7i90hd2VO8Bvxvc1EtfZUT4vsIK3paN+EE=; fh=UoPIrUR/AAgVsIwa8LCh7oqlYM7Rj3BlEVaBt8nygWo=; b=Oy2+GziHipQFr9xq7zLqQAuFXQXUHhXvxVnC2HMjjwBKdFNkulLE0SdBVij1zS7Elj 8txW/2WEnARF8T/Mqe36/6yx1SVRfNrKPlXFb7dbXpVNHHMsgHHRxt9AOzslpOghqtlc Am+7XDd+LK5mBv5g4O9BMJQeye41cp6JdsxWnSPV+lnYSP9PHu5CUBeuQ97gfi5Ol09o yG7LoJ6jekCMFM66cRCd1JQu0/gvkB1/mJ7N2rcZj0KLydz5fz+1S9CUnxjw+lkDqier /ONbnc5MrW/luU+1xeoPj8Gum/niJPPU2UVYvJcPP4bRiEgYRb40Bqyr9tFWBcsyGGOw JDCA== ARC-Authentication-Results: i=1; mx.google.com; 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 k192-20020a636fc9000000b0055fe864931bsi12033440pgc.652.2023.08.03.00.03.19; Thu, 03 Aug 2023 00:03:44 -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; 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 S233501AbjHCGhn (ORCPT + 99 others); Thu, 3 Aug 2023 02:37:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232855AbjHCGhb (ORCPT ); Thu, 3 Aug 2023 02:37:31 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9068830E0 for ; Wed, 2 Aug 2023 23:37:26 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qRRwt-0004xV-Ry; Thu, 03 Aug 2023 08:36:39 +0200 Message-ID: <22f979e8-7591-3393-f323-114da0131e7a@pengutronix.de> Date: Thu, 3 Aug 2023 08:36:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Subject: Re: [EXT] Re: [PATCH v3 net 2/2] net: stmmac: dwmac-imx: pause the TXC clock in fixed-link To: Shenwei Wang , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Shawn Guo , Sascha Hauer , Neil Armstrong , Kevin Hilman , Vinod Koul , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , Jerome Brunet , Martin Blumenstingl , Bhupesh Sharma , Nobuhiro Iwamatsu , Simon Horman , Andrew Halaney , Bartosz Golaszewski , Wong Vee Khee , Revanth Kumar Uppala , Jochen Henneberg , "netdev@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-amlogic@lists.infradead.org" , "imx@lists.linux.dev" , Frank Li References: <20230731161929.2341584-1-shenwei.wang@nxp.com> <20230731161929.2341584-3-shenwei.wang@nxp.com> <49d52a10-20cf-9c5b-ebe3-07292664fe11@pengutronix.de> Content-Language: en-US, de-DE From: Johannes Zink In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: j.zink@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 Hi Shenwei, [snip] >>> >>>> Also: does this only apply to i.MX93, or would we have to test and >>>> enable it on e.g. i.MX8MP as well? >>>> >>> >>> Yes, it is required when the EQOS MAC is selected. However, this patch >>> just enables The feature on i.MX93. >> >> If this behaviour is required on all EQOS, I think the name >> imx_dwmac_fix_speed_mx93() is misleading. It should either be >> imx_dwmac_fix_speed() if applicable to all imx implementations, or >> dwmac_fix_speed() (and moved to a non-gluecode file) if applicable for all >> implementations in general. >> > > It has the general fix_speed function there named imx_dwmac_fix_speed. > This one is the special for this mx93 fix. I think I might have misunderstood your last statement or I failed to express my point. If you need to replace the dwmac_fix_speed() on mx93, because this SoC implementation requires doing so (the usual reason for doing something like this is something like reset quirks because of screwed up IP Core integration), then your approach is imho valid. But if I got your last comment right, your changes should apply to EQOS MAC in general (but you want to only enable it for mx93 at the moment). In this case this quirk will later be as the fix_mac_speed function for other hardware as well, in which case the name ..._mx93 is misleading, and imho rather a descriptive name should be used (i.e. have the name describe what it does rather than for what hardware it is implemented). Except if the maintainers have a strong opinion that the ..._mx93 suffix version is exactly how you should proceed... Best regards Johannes > > Thanks, > Shenwei > [snip] -- Pengutronix e.K. | Johannes Zink | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-5555 |