aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/module-common.c
diff options
authorVladimir Oltean <vladimir.oltean@nxp.com>2025-05-14 17:32:49 +0300
committerJakub Kicinski <kuba@kernel.org>2025-05-15 18:05:05 -0700
commit894fbb55e60cab4ea740f6c65a08b5f8155221f4 (patch)
tree116b1ad806348c0f0e2c597baffea00fb5413393 /scripts/module-common.c
parentabb258eb78a9dd9c76a298f4a73c74ffeef06597 (diff)
downloadnext-queue-main.tar.gz
net: stmmac: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set()HEADmain40GbE1GbE10GbE100GbE
New timestamping API was introduced in commit 66f7223039c0 ("net: add NDOs for configuring hardware timestamping") from kernel v6.6. It is time to convert the stmmac driver to the new API, so that timestamping configuration can be removed from the ndo_eth_ioctl() path completely. The existing timestamping calls are guarded by netif_running(). For stmmac_hwtstamp_get() that is probably unnecessary, since no hardware access is performed. But for stmmac_hwtstamp_set() I've preserved it, since at least some IPs probably need pm_runtime_resume_and_get() to access registers, which is otherwise called by __stmmac_open(). Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://patch.msgid.link/20250514143249.1808377-1-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/module-common.c')
0 files changed, 0 insertions, 0 deletions