Re: [PATCH V3 net-next 2/6] net: Introduce a new MII time stamping interface.

2019-05-28 Thread Andrew Lunn
On Mon, May 27, 2019 at 10:17:50PM -0700, Richard Cochran wrote: > On Wed, May 22, 2019 at 02:58:23AM +0200, Andrew Lunn wrote: > > > -static int dp83640_hwtstamp(struct phy_device *phydev, struct ifreq *ifr) > > > +static int dp83640_hwtstamp(struct mii_timestamper *mii_ts, struct ifreq > > > *if

Re: [PATCH V3 net-next 2/6] net: Introduce a new MII time stamping interface.

2019-05-27 Thread Richard Cochran
On Wed, May 22, 2019 at 02:58:23AM +0200, Andrew Lunn wrote: > > -static int dp83640_hwtstamp(struct phy_device *phydev, struct ifreq *ifr) > > +static int dp83640_hwtstamp(struct mii_timestamper *mii_ts, struct ifreq > > *ifr) > > { > > - struct dp83640_private *dp83640 = phydev->priv; > > +

Re: [PATCH V3 net-next 2/6] net: Introduce a new MII time stamping interface.

2019-05-21 Thread Andrew Lunn
> -static int dp83640_hwtstamp(struct phy_device *phydev, struct ifreq *ifr) > +static int dp83640_hwtstamp(struct mii_timestamper *mii_ts, struct ifreq > *ifr) > { > - struct dp83640_private *dp83640 = phydev->priv; > + struct dp83640_private *dp83640 = > + container_of(mii_t

[PATCH V3 net-next 2/6] net: Introduce a new MII time stamping interface.

2019-05-21 Thread Richard Cochran
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 onl