Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4370451ybl; Mon, 9 Dec 2019 09:40:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzXJMZKTDH3fAJ3XfI4zxGXhh8bGQfla2oPo+o4lQZZ1cgmti4GuogU4Ys0pCqCFXLIh5Lx X-Received: by 2002:a05:6830:13d9:: with SMTP id e25mr21776314otq.134.1575913248861; Mon, 09 Dec 2019 09:40:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575913248; cv=none; d=google.com; s=arc-20160816; b=E2A5uEVHuqd7BCM+t6ZIVrnv8ETBWBEWqYo+gTK74rWYzsJr6bTYlKY4Ni1fSNb5Up IT2TiNmZ1PkofzJMQxgXZo3m8Ta4gUevnuy/56IeMvoY7AWPIBTki4VjEXbvWrDI0bh1 rW2ghta6PrS14KiPyn5SJ0/KdXw/x/f0EANC7Nl5E0f4LWJ13B02CJYddnegd985eLEe FY6SjJ13W4bfJDZoFq3gk4FKl1wzFM0ReZwJXmpfM1/YJRtxy1U4xBO8FiB1W/djdtrM q224SenV5zgSuxfc3JHyS2lw45esn6mTYWjhBEejJIrZfhPt8NjI3QMRqZMe0Cv2e1AR 9ELQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WDt1gquvNnYjOi2MsYlojISdr5lD0TQ2Rerueu67Xyc=; b=UvjHy87rIUJhKbbek4pCeMZCtCF7OdLaBS5TBrTpfsYI4DaXYYEKcFjxWaFlMvb4v0 Rae5Ddw9y7gNIhuq5UM0G5aj80zWUcB4wWRl0f6T1VpHcDDKanF1llFdeUkcHE3GwD5m 3DVtXdDj59+V3qEhCkN2zEqDMxTpMAW8azkd9jv2fOjgxuvXRwyt9FJnYnFde9r5s5DB LPQu5FE4ZL2GnTBNINtmgvagyebehnKXLttPaZZAU6TmjcmNVBIAm3X6padZ7XfnCn8C 9MqpE5ByX7fohuHl42jTl1VhI5zTHuUIHVE0JWM8COEzdt0edQmI2gj2jTFRKGrSIDfI +yRw== ARC-Authentication-Results: i=1; mx.google.com; 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 a1si205348otr.45.2019.12.09.09.40.36; Mon, 09 Dec 2019 09:40:48 -0800 (PST) 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; 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 S1726605AbfLIRj7 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 9 Dec 2019 12:39:59 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:49439 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726379AbfLIRj6 (ORCPT ); Mon, 9 Dec 2019 12:39:58 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ieN0l-0006ad-55; Mon, 09 Dec 2019 18:39:55 +0100 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1ieN0i-0001wW-8t; Mon, 09 Dec 2019 18:39:52 +0100 Date: Mon, 9 Dec 2019 18:39:52 +0100 From: Oleksij Rempel To: Andrew Lunn Cc: Fabio Estevam , netdev@vger.kernel.org, Sascha Hauer , linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, Shawn Guo , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v1] ARM i.MX6q: make sure PHY fixup for KSZ9031 is applied only on one board Message-ID: <20191209173952.qnkzfrbixjgi2jfy@pengutronix.de> References: <20191209084430.11107-1-o.rempel@pengutronix.de> <20191209171508.GD9099@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20191209171508.GD9099@lunn.ch> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 18:37:00 up 24 days, 8:55, 32 users, load average: 0.03, 0.03, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Mon, Dec 09, 2019 at 06:15:08PM +0100, Andrew Lunn wrote: > Hi Oleksij > > > This patch changes the MICREL KSZ9031 fixup, which was introduced for > > the "Data Modul eDM-QMX6" board in following patch, to be only activated > > for this specific board. > > ... > > > static void __init imx6q_enet_phy_init(void) > > { > > + /* Warning: please do not extend this fixup list. This fixups are > > + * applied even on boards where related PHY is not directly connected > > + * to the ethernet controller. For example with switch in the middle. > > + */ > > if (IS_BUILTIN(CONFIG_PHYLIB)) { > > phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, > > ksz9021rn_phy_fixup); > > - phy_register_fixup_for_uid(PHY_ID_KSZ9031, MICREL_PHY_ID_MASK, > > - ksz9031rn_phy_fixup); > > + > > + if (of_machine_is_compatible("dmo,imx6q-edmqmx6")) > > + phy_register_fixup_for_uid(PHY_ID_KSZ9031, > > + MICREL_PHY_ID_MASK, > > + ksz9031rn_phy_fixup); > > + > > phy_register_fixup_for_uid(PHY_ID_AR8031, 0xffffffef, > > ar8031_phy_fixup); > > phy_register_fixup_for_uid(PHY_ID_AR8035, 0xffffffef, > > What about the other 3 fixups? Are they not also equally broken, > applied for all boards, not specific boards? Yes. all of them are broken. I just trying to not wake all wasp at one time. Most probably there are board working by accident. So, it will be good to have at least separate patches for each fixup. -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |