net: Convert PHYs hwtstamp callback to use kernel_hwtstamp_config
authorKory Maincent <kory.maincent@bootlin.com>
Tue, 14 Nov 2023 11:28:29 +0000 (12:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Nov 2023 14:52:56 +0000 (14:52 +0000)
commit446e2305827b76e8081057ce56bbd2703b4da8a9
treeb34f54b2ac83ae406de49d147f76860983237092
parent18de1e517ed37ebaf33e771e46faf052e966e163
net: Convert PHYs hwtstamp callback to use kernel_hwtstamp_config

The PHYs hwtstamp callback are still getting the timestamp config from
ifreq and using copy_from/to_user.
Get rid of these functions by using timestamp configuration in parameter.
This also allow to move on to kernel_hwtstamp_config and be similar to
net devices using the new ndo_hwstamp_get/set.

This adds the possibility to manipulate the timestamp configuration
from the kernel which was not possible with the copy_from/to_user.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm-phy-ptp.c
drivers/net/phy/dp83640.c
drivers/net/phy/micrel.c
drivers/net/phy/mscc/mscc_ptp.c
drivers/net/phy/nxp-c45-tja11xx.c
drivers/net/phy/phy.c
drivers/ptp/ptp_ines.c
include/linux/mii_timestamper.h
include/linux/phy.h