From: Sven Schuchmann <schuchmann@schleissheimer.de>
To: Andrew Lunn <andrew@lunn.ch>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: AW: assert in phylink.c with lan7801 and dp83tc811 since kernel 6.18
Date: Wed, 6 May 2026 11:10:43 +0000 [thread overview]
Message-ID: <BEZP281MB22458F571CC8251C141D933CD93F2@BEZP281MB2245.DEUP281.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <57fb63c2-7a05-4bbe-ba2d-fc61ce1e3ba1@lunn.ch>
Hi Andrew
> Von: Andrew Lunn <andrew@lunn.ch>
> On Tue, May 05, 2026 at 09:53:06AM +0000, Sven Schuchmann wrote:
> > Hello,
> > I have a raspberrypi and switched from kernel 6.12 to 6.18 and now I have a crash in phylink.c.
> Please could you try 7.0.3, or better still, 7.1-rcX. We need to
> determine if the problem has already been fixed and just needs
> backporting, or is it a new problem.
Now tried with: Linux rpi 7.1.0-rc2-v8+ #6 SMP PREEMPT Wed May 6 09:07:34 CEST 2026 aarch64 GNU/Linux
> Please could you make line 1 of drivers/net/phy/phylink.c.
Also done
Still crashing -> see below for more details
[ 2.153568] usb 1-1.3: new high-speed USB device number 3 using dwc2
[ 2.266726] usb 1-1.3: New USB device found, idVendor=0424, idProduct=7801, bcdDevice= 3.00
[ 2.266762] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.266772] usb 1-1.3: Product: LAN7801
[ 2.266781] usb 1-1.3: Manufacturer: Microchip
[ 2.266789] usb 1-1.3: SerialNumber: 00800F780100
[ 2.323106] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): int urb period 64
[ 2.334333] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): PHY usb-001:003:00 doesn't supply possible interfaces
[ 2.334360] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): validation of rgmii-id with support 00000000,00000000,00000000,00006280 and advertisement 00000000,00000000,00000000,00006280 failed: -EINVAL
[ 2.339481] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): can't attach PHY to usb-001:003, error -EINVAL
[ 2.339519] ------------[ cut here ]------------
[ 2.339525] RTNL: assertion failed at drivers/net/phy/phylink.c (2351)
[ 2.339613] WARNING: drivers/net/phy/phylink.c:2351 at phylink_disconnect_phy+0xf0/0x100, CPU#0: kworker/0:0/9
[ 2.851713] Modules linked in:
[ 2.854770] CPU: 0 UID: 0 PID: 9 Comm: kworker/0:0 Not tainted 7.1.0-rc2-v8+ #6 PREEMPT
[ 2.862861] Hardware name: Raspberry Pi Compute Module 4 Rev 1.0 (DT)
[ 2.869297] Workqueue: usb_hub_wq hub_event
[ 2.873486] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 2.880444] pc : phylink_disconnect_phy+0xf0/0x100
[ 2.885233] lr : phylink_disconnect_phy+0xf0/0x100
[ 2.890021] sp : ffffffc08006b4d0
[ 2.893328] x29: ffffffc08006b4d0 x28: ffffff810703ea40 x27: ffffff81053e0000
[ 2.900467] x26: ffffff810703eae0 x25: ffffff810703ea80 x24: 00000000ffffffea
[ 2.907605] x23: ffffff81051ebc50 x22: ffffff81052d80b0 x21: 0000000000008000
[ 2.914742] x20: ffffff810629a000 x19: ffffff8105a50600 x18: 0000000000000006
[ 2.921879] x17: 74612074276e6163 x16: 203a2964657a696c x15: 077907680770072f
[ 2.929016] x14: 07740765076e072f x13: 077907680770072f x12: 07740765076e072f
[ 2.936152] x11: 0720072007200720 x10: 0720072007200729 x9 : ffffffe227d591ec
[ 2.943289] x8 : 0000000000000128 x7 : ffffffe22941d100 x6 : ffffffe22941d100
[ 2.950426] x5 : 3fffffffffffefff x4 : bffffffffffff000 x3 : 0000000000000000
[ 2.957563] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffffff810033de80
[ 2.964701] Call trace:
[ 2.967141] phylink_disconnect_phy+0xf0/0x100 (P)
[ 2.971932] lan78xx_probe+0x9e4/0xda0
[ 2.975679] usb_probe_interface+0x13c/0x360
[ 2.979946] really_probe+0xc4/0x2d0
[ 2.983521] __driver_probe_device+0x88/0x160
[ 2.987876] driver_probe_device+0x44/0x160
[ 2.992057] __device_attach_driver+0xc0/0x150
[ 2.996499] bus_for_each_drv+0x90/0x100
[ 3.000419] __device_attach+0xa8/0x1a0
[ 3.004252] device_initial_probe+0x58/0x68
[ 3.008433] bus_probe_device+0x40/0xb0
[ 3.012266] device_add+0x5a4/0x7b8
[ 3.015751] usb_set_configuration+0x548/0xab0
[ 3.020195] usb_generic_driver_probe+0x5c/0xa0
[ 3.024724] usb_probe_device+0x44/0x140
[ 3.028645] really_probe+0xc4/0x2d0
[ 3.032218] __driver_probe_device+0x88/0x160
[ 3.036573] driver_probe_device+0x44/0x160
[ 3.040754] __device_attach_driver+0xc0/0x150
[ 3.045195] bus_for_each_drv+0x90/0x100
[ 3.049114] __device_attach+0xa8/0x1a0
[ 3.052947] device_initial_probe+0x58/0x68
[ 3.057128] bus_probe_device+0x40/0xb0
[ 3.060961] device_add+0x5a4/0x7b8
[ 3.064446] usb_new_device+0x1bc/0x4e8
[ 3.068278] hub_event+0xde8/0x1560
[ 3.071763] process_one_work+0x164/0x4e0
[ 3.075774] worker_thread+0x19c/0x320
[ 3.079519] kthread+0x138/0x150
[ 3.082742] ret_from_fork+0x10/0x20
[ 3.086317] ---[ end trace 0000000000000000 ]---
[ 3.113678] lan78xx 1-1.3:1.0: probe with driver lan78xx failed with error -22
due to my limited debugging skills I put my kernel over here:
https://github.com/Schuchmann/rpi_lan78xx
added some code to maybe get a better idea:
https://github.com/Schuchmann/rpi_lan78xx/pull/1/changes
[ 2.117653] usb 1-1.3: new high-speed USB device number 3 using dwc2
[ 2.214810] usb 1-1.3: New USB device found, idVendor=0424, idProduct=7801, bcdDevice= 3.00
[ 2.214840] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.214850] usb 1-1.3: Product: LAN7801
[ 2.214857] usb 1-1.3: Manufacturer: Microchip
[ 2.214864] usb 1-1.3: SerialNumber: 00800F780100
[ 2.215258] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --1--
[ 2.215275] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --2--
[ 2.215284] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --3--
[ 2.215310] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --4--
[ 2.215334] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --5--
[ 2.215350] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --6--
[ 2.215358] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --7--
[ 2.215365] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --8--
[ 2.215373] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --9--
[ 2.215380] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --10--
[ 2.215388] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --11--
[ 2.225577] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): deferred multicast write 0x00007ca0
[ 2.272191] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): registered mdiobus bus usb-001:003
[ 2.272211] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --12--
[ 2.272234] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --13--
[ 2.272243] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): int urb period 64
[ 2.272254] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --14--
[ 2.272263] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --15--
[ 2.272270] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --16--
[ 2.272282] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --17--
[ 2.272289] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --18--
[ 2.272300] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --3.2--
[ 2.272305] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --3.3--
[ 2.272312] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --3.4--
[ 2.272316] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --3.5-- 0
[ 2.272433] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phydev->irq = 37
[ 2.272440] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --1--
[ 2.272444] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --2--
[ 2.283504] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --3--
[ 2.283520] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): PHY usb-001:003:00 doesn't supply possible interfaces
[ 2.283528] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): PHY usb-001:003:00 --1.1--
[ 2.283533] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): PHY usb-001:003:00 --1.2--
[ 2.283538] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --3.2--
[ 2.283542] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --3.3--
[ 2.283549] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --3.4--
[ 2.283553] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): phy: --3.5-- -22
[ 2.283559] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): validation of rgmii-id with support 00000000,00000000,00000000,00006280 and advertisement 00000000,00000000,00000000,00006280 failed: -EINVAL
[ 2.288572] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): can't attach PHY to usb-001:003, error -EINVAL
[ 2.288617] ------------[ cut here ]------------
[ 2.288624] RTNL: assertion failed at drivers/net/phy/phylink.c (2377)
[ 2.288730] WARNING: drivers/net/phy/phylink.c:2377 at phylink_disconnect_phy+0xf0/0x100, CPU#0: kworker/0:2/68
[ 2.962641] Modules linked in:
[ 2.965698] CPU: 0 UID: 0 PID: 68 Comm: kworker/0:2 Not tainted 7.1.0-rc2-v8+ #12 PREEMPT
[ 2.973963] Hardware name: Raspberry Pi Compute Module 4 Rev 1.0 (DT)
[ 2.980399] Workqueue: usb_hub_wq hub_event
[ 2.984589] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 2.991547] pc : phylink_disconnect_phy+0xf0/0x100
[ 2.996335] lr : phylink_disconnect_phy+0xf0/0x100
[ 3.001122] sp : ffffffc080d034d0
[ 3.004430] x29: ffffffc080d034d0 x28: ffffff8105f0ea80 x27: ffffff8105f0eb28
[ 3.011568] x26: ffffff8105f0eae0 x25: ffffff810622bc50 x24: 00000000ffffffea
[ 3.018705] x23: ffffff81058708b0 x22: 0000000000008000 x21: ffffff8105877000
[ 3.025842] x20: ffffff8105f0ea40 x19: ffffff810027ce00 x18: 0000000000000006
[ 3.032979] x17: 74612074276e6163 x16: 203a2964657a696c x15: 077907680770072f
[ 3.040116] x14: 07740765076e072f x13: 077907680770072f x12: 07740765076e072f
[ 3.047253] x11: 0720072007200720 x10: 0720072007200729 x9 : ffffffd85f3591ec
[ 3.054390] x8 : 000000000000014a x7 : ffffffd860a1d100 x6 : ffffffd860a1d100
[ 3.061527] x5 : 3fffffffffffefff x4 : bffffffffffff000 x3 : 0000000000000000
[ 3.068664] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffffff8102419f80
[ 3.075801] Call trace:
[ 3.078241] phylink_disconnect_phy+0xf0/0x100 (P)
[ 3.083031] lan78xx_probe+0xb00/0x1208
[ 3.086865] usb_probe_interface+0x13c/0x360
[ 3.091132] really_probe+0xc4/0x2d0
[ 3.094709] __driver_probe_device+0x88/0x160
[ 3.099064] driver_probe_device+0x44/0x160
[ 3.103244] __device_attach_driver+0xc0/0x150
[ 3.107686] bus_for_each_drv+0x90/0x100
[ 3.111605] __device_attach+0xa8/0x1a0
[ 3.115438] device_initial_probe+0x58/0x68
[ 3.119618] bus_probe_device+0x40/0xb0
[ 3.123451] device_add+0x5a4/0x7b8
[ 3.126935] usb_set_configuration+0x548/0xab0
[ 3.131377] usb_generic_driver_probe+0x5c/0xa0
[ 3.135907] usb_probe_device+0x44/0x140
[ 3.139827] really_probe+0xc4/0x2d0
[ 3.143399] __driver_probe_device+0x88/0x160
[ 3.147753] driver_probe_device+0x44/0x160
[ 3.151934] __device_attach_driver+0xc0/0x150
[ 3.156375] bus_for_each_drv+0x90/0x100
[ 3.160294] __device_attach+0xa8/0x1a0
[ 3.164127] device_initial_probe+0x58/0x68
[ 3.168307] bus_probe_device+0x40/0xb0
[ 3.172140] device_add+0x5a4/0x7b8
[ 3.175624] usb_new_device+0x1bc/0x4e8
[ 3.179456] hub_event+0xde8/0x1560
[ 3.182940] process_one_work+0x164/0x4e0
[ 3.186949] worker_thread+0x19c/0x320
[ 3.190694] kthread+0x138/0x150
[ 3.193917] ret_from_fork+0x10/0x20
[ 3.197495] ---[ end trace 0000000000000000 ]---
[ 3.202212] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --out: free_urbs--
[ 3.202245] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --out: out5--
[ 3.202725] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --out: out4--
[ 3.225689] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --out: out3--
[ 3.225735] lan78xx 1-1.3:1.0 (unnamed net_device) (uninitialized): --out: out2--
So for me it somewhere happens in phylink_validate_mac_and_pcs()
Regards,
Sven
next prev parent reply other threads:[~2026-05-06 11:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-05 9:53 assert in phylink.c with lan7801 and dp83tc811 since kernel 6.18 Sven Schuchmann
2026-05-05 13:13 ` Andrew Lunn
2026-05-06 11:10 ` Sven Schuchmann [this message]
2026-05-06 12:39 ` Andrew Lunn
2026-05-06 13:04 ` Maxime Chevallier
2026-05-06 13:18 ` Andrew Lunn
2026-05-06 16:00 ` AW: " Sven Schuchmann
2026-05-06 16:40 ` Andrew Lunn
2026-05-07 6:52 ` AW: " Sven Schuchmann
2026-05-07 12:49 ` Andrew Lunn
2026-05-06 13:15 ` Andrew Lunn
2026-05-06 14:36 ` AW: " Sven Schuchmann
2026-05-06 12:30 ` Sven Schuchmann
2026-05-06 12:52 ` Andrew Lunn
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=BEZP281MB22458F571CC8251C141D933CD93F2@BEZP281MB2245.DEUP281.PROD.OUTLOOK.COM \
--to=schuchmann@schleissheimer.de \
--cc=andrew@lunn.ch \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox