Message ID | CAOMZO5AL2iFJSpSukcV44Y=JZecRrm0sCRZQgyTM6w8_R6OHqw@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Wed, Aug 19, 2015 at 3:17 PM, Fabio Estevam <festevam@gmail.com> wrote: >> Please send an incremental fix (or I can drop this branch if you need >> more time). > > Does this fix it? > > --- a/arch/arm/mach-imx/mach-imx6ul.c > +++ b/arch/arm/mach-imx/mach-imx6ul.c > @@ -45,7 +45,9 @@ static int ksz8081_phy_fixup(struct phy_device *dev) > > static void __init imx6ul_enet_phy_init(void) > { > - phy_register_fixup_for_uid(PHY_ID_KSZ8081, 0xffffffff, > ksz8081_phy_fixup); > + if (IS_BUILTIN(CONFIG_PHYLIB)) > + phy_register_fixup_for_uid(PHY_ID_KSZ8081, 0xffffffff, > + ksz8081_phy_fixup); > } Yes, just confirmed that this fixes the issue and sent a formal patch.
--- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -45,7 +45,9 @@ static int ksz8081_phy_fixup(struct phy_device *dev) static void __init imx6ul_enet_phy_init(void) { - phy_register_fixup_for_uid(PHY_ID_KSZ8081, 0xffffffff, ksz8081_phy_fixup); + if (IS_BUILTIN(CONFIG_PHYLIB)) + phy_register_fixup_for_uid(PHY_ID_KSZ8081, 0xffffffff, + ksz8081_phy_fixup); }