# Re: \[PATCH net-next v5 02/16\] net: phy: Remove the call to phy\_mii\_ioctl in phy\_hwstamp\_get/set

- From: Florian Fainelli \<f.fainelli@gmail.com\>
- Date: 2023-10-09 21:04:33 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/10/2361308
- 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>
>
> __phy_hwtstamp_set function were calling the phy_mii_ioctl function
> which will then use the ifreq pointer to call the hwtstamp callback.
> Now that ifreq has been removed from the hwstamp callback parameters
> it seems more logical to not go through the phy_mii_ioctl function and pass
> directly kernel_hwtstamp_config parameter to the hwtstamp callback.
>
> Lets do the same for __phy_hwtstamp_get function and return directly
> EOPNOTSUPP as SIOCGHWTSTAMP is not supported for now for the PHYs.
>
> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian

```
