linux/drivers/net/ethernet/ti
David Yang 955bb7cf68 net: ti: icssm-prueth: Move setting of netops to fix crash
icssm_prueth_netdev_init() calls of_phy_get_and_connect() before
ndev->netdev_ops is assigned. phy_attach_direct() ->
phy_link_topo_add_phy() reads dev->netdev_ops through
netdev_need_ops_lock() since the commit in question, so probing crashes
with a NULL pointer dereference when CONFIG_NET_SHAPER is enabled.

Assign netdev_ops before the PHY attach, as was done for emac in commit
7c9f391ec8 ("net: emac: move setting of netops to fix crash").

Fixes: ded86da4bb ("net: ethtool: relax ethnl_req_get_phydev() locking assertion")
Signed-off-by: David Yang <mmyangfl@gmail.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20261008022656.3592191-10-mmyangfl@gmail.com
Reviewed-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-10-15 10:39:21 +02:00
..
icssg net: ti: icssg: Fix XSK zero copy TX during application wakeup 2026-06-23 14:45:32 -07:00
icssm net: ti: icssm-prueth: Move setting of netops to fix crash 2026-10-15 10:39:21 +02:00
am65-cpsw-ethtool.c net: ethernet: ti: am65-cpsw: Discard pm_runtime_put() return value 2026-01-08 08:15:03 -08:00
am65-cpsw-nuss.c net: ethernet: ti: am65-cpsw-nuss: Fix port_id extraction from SRC TAG 2026-08-12 17:36:19 -07:00
am65-cpsw-nuss.h net: ethernet: ti: am65-cpsw-nuss: Fix rx_filter value for PTP support 2026-03-11 20:28:37 -07:00
am65-cpsw-qos.c net: ethernet: ti: am65-cpsw-qos: fix IET verify retry mechanism 2025-11-10 18:00:40 -08:00
am65-cpsw-qos.h
am65-cpsw-switchdev.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
am65-cpsw-switchdev.h
am65-cpts.c net: ethernet: ti: am65-cpsw: Use also port number to identify timestamps 2026-03-09 19:01:08 -07:00
am65-cpts.h net: ethernet: ti: am65-cpsw: Use also port number to identify timestamps 2026-03-09 19:01:08 -07:00
cpsw_ale.c net: ethernet: ti-cpsw: fix linking built-in code to modules 2026-04-06 19:03:49 -07:00
cpsw_ale.h net: ethernet: ti: cpsw_ale: Fix warning on some platforms 2024-10-01 11:34:41 +02:00
cpsw_ethtool.c net: ethernet: ti-cpsw: fix linking built-in code to modules 2026-04-06 19:03:49 -07:00
cpsw_new.c net: cpsw_new: unregister devlink on port registration failure 2026-06-05 17:27:24 -07:00
cpsw_priv.c net: add READ_ONCE()/WRITE_ONCE() annotations for dev->num_tc 2026-08-17 10:27:48 -07:00
cpsw_priv.h net: ethernet: ti-cpsw:: rename soft_reset() function 2026-04-06 19:03:46 -07:00
cpsw_sl.c net: ethernet: ti-cpsw: fix linking built-in code to modules 2026-04-06 19:03:49 -07:00
cpsw_sl.h
cpsw_switchdev.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
cpsw_switchdev.h
cpsw-common.c net: fill in MODULE_DESCRIPTION()s for cpsw-common 2024-01-29 12:12:51 +00:00
cpsw-phy-sel.c
cpsw.c net: ethernet: ti-cpsw:: rename soft_reset() function 2026-04-06 19:03:46 -07:00
cpsw.h
cpts.c time/timecounter: Fix the lie that struct cyclecounter is const 2025-07-01 15:38:25 +02:00
cpts.h
davinci_cpdma.c net: ethernet: ti-cpsw: fix linking built-in code to modules 2026-04-06 19:03:49 -07:00
davinci_cpdma.h
davinci_emac.c net: ti: davinci_emac: stop using bus type mdio_bus_type 2026-03-03 13:12:08 +01:00
davinci_mdio.c net: davinci_mdio: use new iterator mdiobus_for_each_phy 2025-10-29 19:00:34 -07:00
k3-cppi-desc-pool.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
k3-cppi-desc-pool.h net: ethernet: ti: Add desc_infos member to struct k3_cppi_desc_pool 2024-04-15 13:18:18 +01:00
Kconfig net: ti: icssg-prueth: Add optional dependency on HSR 2026-02-11 12:04:15 +01:00
Makefile net: ethernet: ti-cpsw: fix linking built-in code to modules 2026-04-06 19:03:49 -07:00
netcp_core.c net: ethernet: ti: netcp: fix pm_runtime usage counter leak on error 2026-09-22 13:10:01 +02:00
netcp_ethss.c phy: rename hwtstamp callback to hwtstamp_set 2025-11-26 16:56:33 -08:00
netcp_sgmii.c
netcp_xgbepcsr.c
netcp.h net: ethernet: ti: netcp: Use u64_stats_t with u64_stats_sync properly 2026-01-26 19:53:41 -08:00
tlan.c net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
tlan.h