Merge branch 'siocghwtstamp' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next
Ben Hutchings says: ==================== SIOCGHWTSTAMP ioctl 1. Add the SIOCGHWTSTAMP ioctl and update the timestamping documentation. 2. Implement SIOCGHWTSTAMP in most drivers that support SIOCSHWTSTAMP. 3. Add a test program to exercise SIOC{G,S}HWTSTAMP. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1847,7 +1847,9 @@ static int efx_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd)
|
||||
struct mii_ioctl_data *data = if_mii(ifr);
|
||||
|
||||
if (cmd == SIOCSHWTSTAMP)
|
||||
return efx_ptp_ioctl(efx, ifr, cmd);
|
||||
return efx_ptp_set_ts_config(efx, ifr);
|
||||
if (cmd == SIOCGHWTSTAMP)
|
||||
return efx_ptp_get_ts_config(efx, ifr);
|
||||
|
||||
/* Convert phy_id from older PRTAD/DEVAD format */
|
||||
if ((cmd == SIOCGMIIREG || cmd == SIOCSMIIREG) &&
|
||||
|
Reference in New Issue
Block a user