From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Fabio Estevam <festevam@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
Russell King - ARM Linux <linux@armlinux.org.uk>,
Heiner Kallweit <hkallweit1@gmail.com>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
netdev <netdev@vger.kernel.org>,
NXP Linux Team <linux-imx@nxp.com>
Subject: Re: imx6sx: Regression on FEC with KSZ8061
Date: Wed, 4 May 2022 13:13:51 +0200 [thread overview]
Message-ID: <20220504111351.GA2812@pengutronix.de> (raw)
In-Reply-To: <CAOMZO5AJRTfja47xGG6nzLdC7Bdr=r5K0FVCcgMvN05XSb7LhA@mail.gmail.com>
On Wed, May 04, 2022 at 07:48:56AM -0300, Fabio Estevam wrote:
> On Wed, May 4, 2022 at 7:24 AM Fabio Estevam <festevam@gmail.com> wrote:
> >
> > Hi,
> >
> > On an imx6sx-based board, the Ethernet is functional on 5.10.
> >
> > The board has a KSZ8061 Ethernet PHY.
> >
> > After moving to kernel 5.15 or 5.17, the Ethernet is no longer functional:
> >
> > # udhcpc -i eth0
> > udhcpc: started, v1.35.0
> > 8<--- cut here ---
> > Unable to handle kernel NULL pointer dereference at virtual address 00000008
> > pgd = f73cef4e
> > [00000008] *pgd=00000000
> > Internal error: Oops: 5 [#1] SMP ARM
> > Modules linked in:
> > CPU: 0 PID: 196 Comm: ifconfig Not tainted 5.15.37-dirty #94
> > Hardware name: Freescale i.MX6 SoloX (Device Tree)
> > PC is at kszphy_config_reset+0x10/0x114
>
> By adding this change, we can see that priv is NULL:
>
> --- a/drivers/net/phy/micrel.c
> +++ b/drivers/net/phy/micrel.c
> @@ -508,8 +508,12 @@ static int kszphy_nand_tree_disable(struct phy_device *phyd
> ev)
> /* Some config bits need to be set again on resume, handle them here. */
> static int kszphy_config_reset(struct phy_device *phydev)
> {
> - struct kszphy_priv *priv = phydev->priv;
> int ret;
> + struct kszphy_priv *priv = phydev->priv;
> + if (!priv) {
> + pr_err("*********** priv is NULL\n");
> + return -ENOMEM;
> + }
Hm.. KSZ8061 do not calls probe, so priv is not allocated.
Regards,
Oleksij
--
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 |
next prev parent reply other threads:[~2022-05-04 11:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-04 10:24 imx6sx: Regression on FEC with KSZ8061 Fabio Estevam
2022-05-04 10:48 ` Fabio Estevam
2022-05-04 11:13 ` Oleksij Rempel [this message]
2022-05-04 11:25 ` Fabio Estevam
2022-05-04 17:13 ` Florian Fainelli
2022-05-04 17:14 ` Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220504111351.GA2812@pengutronix.de \
--to=o.rempel@pengutronix.de \
--cc=andrew@lunn.ch \
--cc=festevam@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=linux-imx@nxp.com \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.