# Re: \[PATCH net-next v5 01/16\] net: Convert PHYs hwtstamp callback to use kernel\_hwtstamp\_config

- From: Florian Fainelli \<f.fainelli@gmail.com\>
- Date: 2023-10-09 21:03:12 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/10/2361305
- Thread: https://ratatoskr.run/netdev/2023/10/2360903/t.md

```text
On 10/9/23 08:51, Köry Maincent wrote:
> From: Kory Maincent <kory.maincent@bootlin.com>
>
> 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>
-- 
Florian

```
