Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1584772ybb; Sun, 29 Mar 2020 08:21:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuCuZ+oWKDlLlIpBg+u04emquHSO4MM3ZTa+ftugGLFb1DtKGE2q2U7UMXYtk8Bb4cg2o9B X-Received: by 2002:a4a:41ce:: with SMTP id x197mr6674542ooa.77.1585495285451; Sun, 29 Mar 2020 08:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585495285; cv=none; d=google.com; s=arc-20160816; b=HrxTASJ/tCS3suRE0SZjXquJ+gHuvBhRS/KESxgi48afiQpiiPo4m04iJSwNxTkQ0a Fil/aNYT4fzDr/xdH0P3i5sSFVZVRvR+PZhyS/3uL2vMlyDJptDyiPVsMj+uYfe3bWOo /vudBUGJLEVrcwTDAfydfNEGtz4Ua8/zjU1Dr+n/ykNk6lZS73r04y/lLwZvG7qjLtyF 78pSmx2mMKtIYc940aPr2RGSIvth0UX3R4YmsxAbSbmjyiTk6W91yCiEJLud3AFOH8G3 yueQPswmDH3B8IvpI5MzDZM/bQYQuH92TU962ZCH5hzi0aIvB7JUph9CQZ4GpKFwIqgS lmuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5k91iJvz4PccPOFEwloR/4H/cQNQeGa+coxrPB2qksw=; b=zJIReCBbtnN94+kXEQ1ZR0ziob0Dt33rzqfkc5N4hWIUUZi9fX/v7JKEfTHsfFOxlI OzBtpZnYmS7xchKqHs+z7KfR3Z0R+79DMYn1+csRbIpTHws7oQ8M5GALn/risQ97bOrn SmzA0Z7cw2nD4QT01rK9/Tp4dXhx6HS1dHuSPRuwc1RqAITdt9l9hhtB5wn2+9ElpLqX F0Yb5y64kAgCrm8FwpTv9BpFJxq7n6dl1nfVtaWnYpf0mLlVHoFvgPKWoSWADEpXBcDx JWAcmCeWm9i/aCWBaoHmZ0OS+3gNkJIzX3GnPBxVNgWAegiTSFDJqp3bOdBR5Q6TXTPL 775w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=Zv03jrAb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si474112otq.301.2020.03.29.08.21.00; Sun, 29 Mar 2020 08:21:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=Zv03jrAb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728288AbgC2PJC (ORCPT + 99 others); Sun, 29 Mar 2020 11:09:02 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:37476 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727729AbgC2PJB (ORCPT ); Sun, 29 Mar 2020 11:09:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=5k91iJvz4PccPOFEwloR/4H/cQNQeGa+coxrPB2qksw=; b=Zv03jrAbvyZvIP06Bvblmgrp7j rFjCPmTRKfXrIKGuFAPmy1CBKTUn/TAswsiP440JH+ZU1JmygnPjq4BHg/yR2/8td0//lNdJ/sxXV BXB2Gu78RT3E4lAWACrxXJx2zIlf7fkR4BpcVOMirmZkaC/JPwkKIzpwso3WZH4vSrGw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jIZYU-0004NO-DC; Sun, 29 Mar 2020 17:08:54 +0200 Date: Sun, 29 Mar 2020 17:08:54 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Shawn Guo , Sascha Hauer , Florian Fainelli , Heiner Kallweit , kernel@pengutronix.de, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , David Jander , Russell King Subject: Re: [PATCH v2] ARM: imx: allow to disable board specific PHY fixups Message-ID: <20200329150854.GA31812@lunn.ch> References: <20200329110457.4113-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200329110457.4113-1-o.rempel@pengutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 29, 2020 at 01:04:57PM +0200, Oleksij Rempel wrote: Hi Oleksij > +config DEPRECATED_PHY_FIXUPS > + bool "Enable deprecated PHY fixups" > + default y > + ---help--- > + In the early days it was common practice to configure PHYs by adding a > + phy_register_fixup*() in the machine code. This practice turned out to > + be potentially dangerous, because: > + - it affects all PHYs in the system > + - these register changes are usually not preserved during PHY reset > + or suspend/resume cycle. > + - it complicates debugging, since these configuration changes were not > + done by the actual PHY driver. > + This option allows to disable all fixups which are identified as > + potentially harmful and give the developers a chance to implement the > + proper configuration via the device tree (e.g.: phy-mode) and/or the > + related PHY drivers. This appears to be an IMX only problem. Everybody else seems to of got this right. There is no need to bother everybody with this new option. Please put this in arch/arm/mach-mxs/Kconfig and have IMX in the name. Having said that, i'm not sure this is the best solution. You cannot build one kernel which runs on all machines. Did you consider some sort of DT property to disable these fixup? What other ideas did you have before deciding on this solution? Andrew