[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191209173952.qnkzfrbixjgi2jfy@pengutronix.de>
Date: Mon, 9 Dec 2019 18:39:52 +0100
From: Oleksij Rempel <o.rempel@...gutronix.de>
To: Andrew Lunn <andrew@...n.ch>
Cc: Fabio Estevam <festevam@...il.com>, netdev@...r.kernel.org,
Sascha Hauer <s.hauer@...gutronix.de>,
linux-kernel@...r.kernel.org, linux-imx@....com,
kernel@...gutronix.de, Shawn Guo <shawnguo@...nel.org>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v1] ARM i.MX6q: make sure PHY fixup for KSZ9031 is
applied only on one board
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 |
Powered by blists - more mailing lists