diff options
author | 2025-05-12 14:44:22 +0300 | |
---|---|---|
committer | 2025-05-14 19:41:46 -0700 | |
commit | 4cde0e4224ce70bb6e91930a8850b59194151838 (patch) | |
tree | 3b7901f1c0fbd8d9a80565d7dea9fb80d7d856df /mm/dmapool_test.c | |
parent | net: cpsw: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() (diff) | |
download | wireguard-linux-4cde0e4224ce70bb6e91930a8850b59194151838.tar.xz wireguard-linux-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 <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20250512114422.4176010-2-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions