net: phy: Remove the call to phy_mii_ioctl in phy_hwstamp_get/set
authorKory Maincent <kory.maincent@bootlin.com>
Tue, 14 Nov 2023 11:28:30 +0000 (12:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Nov 2023 14:52:56 +0000 (14:52 +0000)
commit430dc3256d5790361135c69af5de1aaa07248e8a
treef4ee217e4a0313665615db5c47af7cf66a99d20a
parent446e2305827b76e8081057ce56bbd2703b4da8a9
net: phy: Remove the call to phy_mii_ioctl in phy_hwstamp_get/set

__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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c