[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <phab74r5xxbufhe6llruqa3tgkxzalytgzqrko4o2bg2xzizjv@apha3we342xn>
Date: Sat, 7 Dec 2024 22:07:23 +0100
From: Jörg Sommer <joerg@...so.de>
To: Andrew Lunn <andrew@...n.ch>
Cc: netdev@...r.kernel.org, Christian Eggers <ceggers@...i.de>
Subject: Re: KSZ8795 not detected at start to boot from NFS
Andrew Lunn schrieb am Sa 07. Dez, 21:47 (+0100):
> On Sat, Dec 07, 2024 at 08:53:38AM +0100, Jörg Sommer wrote:
> > It tries to initialize the switch before the ethernet of the SoC is ready.
> >
> > Before this commit the kernel returned EPROBE_DEFER instead of EINVAL (or
> > ENODEV) as a quick
>
> This is often true for DSA switches, that the first probe fails with
> EPROBE_DEFER, because the conduit ethernet is not ready.
>
> What i don't understand from your description is why:
>
> > + /* setup spi */
> > + spi->mode = SPI_MODE_3;
> > + ret = spi_setup(spi);
> > + if (ret)
> > + return ret;
> > +
>
> is causing this issue. Is spi_setup() failing?
I've added another dev_err() after the spi_setup:
[ 1.680516] ksz8795-switch spi0.1: ksz8795_spi_probe:55: ret of spi_setup=0
[ 1.819194] ksz8795-switch spi0.1: ksz8795_spi_probe:61: ret=-22
[ 1.825611] spi_davinci 1f0e000.spi: Controller at 0x(ptrval)
…
[ 1.949668] ksz8795-switch spi0.1: ksz8795_spi_probe:55: ret of spi_setup=0
[ 2.090136] ksz8795-switch spi0.1: ksz8795_spi_probe:61: ret=-517
[ 2.097438] ksz8795-switch spi0.1: ksz8795_spi_probe:55: ret of spi_setup=0
[ 2.230043] ksz8795-switch spi0.1: ksz8795_spi_probe:61: ret=-517
[ 2.241625] davinci_emac 1e20000.ethernet: incompatible machine/device type for reading mac address
[ 2.255218] ksz8795-switch spi0.1: ksz8795_spi_probe:55: ret of spi_setup=0
…
[ 3.121263] libphy: dsa slave smi: probed
[ 3.127206] ksz8795-switch spi0.1 lan-x1 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
[ 3.142775] ksz8795-switch spi0.1 lan-x2 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY] (irq=POLL)
--
Treffen sich zwei Funktionen.
Sagt die eine: „Verschwinde oder ich differenzier' dich!“
Erwidert die andere: „Ätsch, ich bin exponentiell!“
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists