net: Introduce a new MII time stamping interface.
Currently the stack supports time stamping in PHY devices. However, there are newer, non-PHY devices that can snoop an MII bus and provide time stamps. In order to support such devices, this patch introduces a new interface to be used by both PHY and non-PHY devices. In addition, the one and only user of the old PHY time stamping API is converted to the new interface. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
12d0efb9e6
commit
4715f65ffa
@@ -422,8 +422,8 @@ int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd)
|
||||
return 0;
|
||||
|
||||
case SIOCSHWTSTAMP:
|
||||
if (phydev->drv && phydev->drv->hwtstamp)
|
||||
return phydev->drv->hwtstamp(phydev, ifr);
|
||||
if (phydev->mii_ts && phydev->mii_ts->hwtstamp)
|
||||
return phydev->mii_ts->hwtstamp(phydev->mii_ts, ifr);
|
||||
/* fall through */
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user