From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2B7EC433ED for ; Tue, 13 Apr 2021 10:01:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 84C7961370 for ; Tue, 13 Apr 2021 10:01:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243377AbhDMKBT (ORCPT ); Tue, 13 Apr 2021 06:01:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230475AbhDMKBM (ORCPT ); Tue, 13 Apr 2021 06:01:12 -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 BB83FC061574 for ; Tue, 13 Apr 2021 03:00:52 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWFqh-00049D-7p; Tue, 13 Apr 2021 12:00:47 +0200 Message-ID: Subject: Re: [PATCH v2 0/7] remove different PHY fixups From: Lucas Stach To: Oleksij Rempel , Shawn Guo , Sascha Hauer , Andrew Lunn , Florian Fainelli , Heiner Kallweit Cc: Philippe Schenker , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , linux-imx@nxp.com, kernel@pengutronix.de, David Jander , Fabio Estevam , linux-arm-kernel@lists.infradead.org Date: Tue, 13 Apr 2021 12:00:45 +0200 In-Reply-To: <20210309112615.625-1-o.rempel@pengutronix.de> References: <20210309112615.625-1-o.rempel@pengutronix.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Am Dienstag, dem 09.03.2021 um 12:26 +0100 schrieb Oleksij Rempel: > changes v2: > - rebase against latest kernel > - fix networking on RIoTBoard > > This patch series tries to remove most of the imx6 and imx7 board > specific PHY configuration via fixup, as this breaks the PHYs when > connected to switch chips or USB Ethernet MACs. > > Each patch has the possibility to break boards, but contains a > recommendation to fix the problem in a more portable and future-proof > way. I agree with the opinion that those PHY fixups introduce more harm than good. Essentially they are pushing board specific configuration values into the PHY, without any checks that the fixup is even running on the specific board it was targeted at. While there is a real chance to break some out of tree boards or incomplete configs I think that's something we can accept here. If someone makes a case why they can absolutely not fixup their DT or kernel config we could even bring back some of those fixups with a proper board compatible check to avoid mashing things up for other boards with the same PHY. I guess the only realistic way to learn if someone can make such a case is to apply this series and look for any fallout. So for what it is worth: Acked-by: Lucas Stach > regards, > Oleksij > > Oleksij Rempel (7): >   ARM: imx6q: remove PHY fixup for KSZ9031 >   ARM: imx6q: remove TX clock delay of ar8031_phy_fixup() >   ARM: imx6q: remove hand crafted PHY power up in ar8035_phy_fixup() >   ARM: imx6q: remove clk-out fixup for the Atheros AR8031 and AR8035 >     PHYs >   ARM: imx6q: remove Atheros AR8035 SmartEEE fixup >   ARM: imx6sx: remove Atheros AR8031 PHY fixup >   ARM: imx7d: remove Atheros AR8031 PHY fixup > >  arch/arm/boot/dts/imx6dl-riotboard.dts | 2 + >  arch/arm/boot/dts/imx6q-dmo-edmqmx6.dts | 2 +- >  arch/arm/mach-imx/mach-imx6q.c | 85 ------------------------- >  arch/arm/mach-imx/mach-imx6sx.c | 26 -------- >  arch/arm/mach-imx/mach-imx7d.c | 22 ------- >  5 files changed, 3 insertions(+), 134 deletions(-) >