diff options
| author | Vladimir Oltean <[email protected]> | 2025-05-12 11:44:22 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-05-15 02:41:46 +0000 |
| commit | 4cde0e4224ce70bb6e91930a8850b59194151838 (patch) | |
| tree | 3b7901f1c0fbd8d9a80565d7dea9fb80d7d856df /kernel/trace/trace_functions.c | |
| parent | net: cpsw: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() (diff) | |
| download | kernel-4cde0e4224ce70bb6e91930a8850b59194151838.tar.gz kernel-4cde0e4224ce70bb6e91930a8850b59194151838.zip | |
net: cpsw: isolate cpsw_ndo_ioctl() to just the old driver
cpsw->slaves[slave_no].phy should be equal to netdev->phydev, because it
is assigned from phy_attach_direct(). The latter is indirectly called
from the two identically named cpsw_slave_open() functions, one in
cpsw.c and another in cpsw_new.c.
Thus, the driver should not need custom logic to find the PHY, the core
can find it, and phy_do_ioctl_running() achieves exactly that.
However, that is only the case for cpsw_new and for the cpsw driver in
dual EMAC mode. This is explained in more detail in the previous commit.
Thus, allow the simpler core logic to execute for cpsw_new, and move
cpsw_ndo_ioctl() to cpsw.c.
Signed-off-by: Vladimir Oltean <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'kernel/trace/trace_functions.c')
0 files changed, 0 insertions, 0 deletions
