Received: by 2002:ac8:6714:0:b0:405:464a:c27a with SMTP id e20csp396082qtp; Fri, 28 Jul 2023 05:24:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJIJ/JArnDJAG/4Re5h2vMP37D13xvCGBm6flScCnFrY/3iwJedL1gvh0VRxDlG5nD+Ls6 X-Received: by 2002:a05:6a00:13a5:b0:686:b5c9:c527 with SMTP id t37-20020a056a0013a500b00686b5c9c527mr2450826pfg.17.1690547083584; Fri, 28 Jul 2023 05:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690547083; cv=none; d=google.com; s=arc-20160816; b=AkVP2LbHnfcJgLZ5/+u8XePJ6w1NmhLh4ZqrFef4LIfMSur2K59ownfJpbRzFhBxhc NIbfC0/ec/KcV45FpIGgJoMfKmC/oflOh/DHYiA5UxxlbqNIOhxYvwzEkbnIGpwzrTN/ onFTOD/y3EzCU6zdj8K0Q7uElIwXEd5qvA9TIxz4xUuqWHHMZkHzSRamjWOia8PUcfcq byT0q1r1elfVhnLV6wQMxo5LeUoq/IrNGjfR2GZvk99Eew5Akby3gPDPyFBGWXoCXrdx XW/poimI5rsOd7nIt1F88QeyiQ5Yf299JjJ0JTF198fAi6SdzxTKjY9k4Ifq1QIUg/1Q BupA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jAU8K3a8dHy/tuEIb7Zpcs7Yfdt1964yvfWu4jQqUuw=; fh=j0z2cYd2ZGF6+nJbFT/CmL6sdJbWffzSVY01G4L8uoc=; b=Sppa3zRUe3qbP4NnKsUsiAfegwYO2/jqB+hZx5X6l/uRtEzT+Dzobji3nlsf261luF 8bEftzzlvZ4c6zw+aP1Wf3eHr8dqtizrm+6KDrE+m1q6bI6bSnom0hYNp9BeRi4z0Zrt LQape5/Fu8ETMuoqmUiu1HUmwZpxXTkitWbv8HxZx9TpMfZ9WLLxy5yqznnaEliRIjFO ElHZFEjG6ThCCvxISAP8njQ0Z16MUA/Qvu9zJHZNTWOufF+D8paMRvW4CULTvow06D5R Gu2AwyAk97FvcQGcYnXYApjq7ETv77sVEQ+AED2Y29TPm4UTZUuffedVfTIwbLV4Vrkd pgqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UrIAf3FU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020aa78886000000b00666887b7eecsi3174046pfe.312.2023.07.28.05.24.31; Fri, 28 Jul 2023 05:24:43 -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=@gmail.com header.s=20221208 header.b=UrIAf3FU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236108AbjG1LAw (ORCPT + 99 others); Fri, 28 Jul 2023 07:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236104AbjG1LAt (ORCPT ); Fri, 28 Jul 2023 07:00:49 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B281B3A96; Fri, 28 Jul 2023 04:00:44 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-55acbe0c7e4so329255a12.0; Fri, 28 Jul 2023 04:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690542044; x=1691146844; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jAU8K3a8dHy/tuEIb7Zpcs7Yfdt1964yvfWu4jQqUuw=; b=UrIAf3FUSIv8YxPhfTK3nLv5IcWt5sxAS/MbAn3DuvkbIaHb7LD1g2rsl9yDEOwdSh 3vY0iX48P3rU4dTxIJB9eIHtKllX7TF/TQCeOHzvgsz3cWjLPstf2rQNO1zJWaoQn/gT UDXJsAlFDdBYgpQbSjyavgIMkKIzTkwmiiGHFsWFrOlEcyrmWSTfsQa90rXEFhKycdx3 sDsjhtBzBwTjeYOFc5jeJUg3L02N3lkPbPRcUAFljwl+lxlzHq8CKGg/m/bq7o/rlqbu fBbHr2TW9PfmJwxLS25qzOzPs3WbUxIe2YYi58UyCNVMDhLqbq9r2TYFdyq5zGHKFDSJ cKGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690542044; x=1691146844; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jAU8K3a8dHy/tuEIb7Zpcs7Yfdt1964yvfWu4jQqUuw=; b=IjpXhcdGkyZp4rkFXUkal/ltjHfD51zA4CvXZfU4Neps6HSVyD8JqOMErV9auzUBB7 vFPSil6Gnyx9OYf54Odo9APLMa24LR7eXriSdhfIxrjIZe7NA2wVvhFAU43xzyGRO4yC 8I0zS+HSy+F/SZEPSzF8NRRejOvL5AYMux/9R3ntechNIND7Tjx+K8GpEAHzIrS0lejh lCL91QPwoX5oII9mjSON9t0ioHci6rjqKmFwgQlg0+KxnmaWC1PleFDYwhl1sbDJ/RF8 nGgTOVBis1kEI4pyxFYRjY/0jf7pWPodcLSGhEJZdwx50pLruSAvhn31afzWd8kzz4eo j2vw== X-Gm-Message-State: ABy/qLZ1UVbJLnGmVceew55538jTjYwMCclPnQE0z8o3vuYpA+IyfXjL KzQK8BELnCVVrau7njjbKZ04GkYiA6Cs2uXKouE= X-Received: by 2002:a17:90a:e4f:b0:267:f1dc:74ee with SMTP id p15-20020a17090a0e4f00b00267f1dc74eemr1975393pja.2.1690542044042; Fri, 28 Jul 2023 04:00:44 -0700 (PDT) MIME-Version: 1.0 References: <20230727152503.2199550-1-shenwei.wang@nxp.com> <20230727152503.2199550-3-shenwei.wang@nxp.com> In-Reply-To: <20230727152503.2199550-3-shenwei.wang@nxp.com> From: Fabio Estevam Date: Fri, 28 Jul 2023 08:00:32 -0300 Message-ID: Subject: Re: [PATCH v2 net 2/2] net: stmmac: dwmac-imx: pause the TXC clock in fixed-link To: Shenwei Wang , Andrew Lunn Cc: 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 , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Pengutronix Kernel Team , NXP Linux Team , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, Jul 27, 2023 at 12:25=E2=80=AFPM Shenwei Wang wrote: > struct plat_stmmacenet_data *plat_dat =3D priv; > @@ -317,8 +359,11 @@ static int imx_dwmac_probe(struct platform_device *p= dev) > plat_dat->exit =3D imx_dwmac_exit; > plat_dat->clks_config =3D imx_dwmac_clks_config; > plat_dat->fix_mac_speed =3D imx_dwmac_fix_speed; > + if (of_machine_is_compatible("fsl,imx93")) > + plat_dat->fix_mac_speed =3D imx_dwmac_fix_speed_mx93; So you are forcing this on all imx93 boards, even if they don't use a SJA11= 05. Andrew Lunn gave the following feedback in v1: "The SJA1105 has the problem, so i would expect it to be involved in the solution. Otherwise, how is this going to work for other MAC drivers? Maybe you need to expose a common clock framework clock for the TXC clock line, which the SJA1105 can disable/enable? That then makes it clear what other MAC drivers need to do."