On Mon, Jul 13, 2020 at 6:57 PM Richard Cochran <richardcoch...@gmail.com> wrote: > > On Mon, Jul 13, 2020 at 11:40:34AM +0530, sundeep subbaraya wrote: > > > > +static int otx2_ioctl(struct net_device *netdev, struct ifreq *req, > > > > int cmd) > > > > +{ > > > > + struct otx2_nic *pfvf = netdev_priv(netdev); > > > > + struct hwtstamp_config *cfg = &pfvf->tstamp; > > > > + > > > > > > Need to test phy_has_hwtstamp() here and pass ioctl to PHY if true. > > > > > For this platform PHY is taken care of by firmware hence it is not > > possible. > > This has nothing to do with the FW. The HW design might include a PHY > or MII time stamping device.
In our HW, ingress timestamping is done by CGX device which is a MAC. Wrt PHY, the serdes, PHY etc are managed by firmware. So no 'phydev' available in kernel. Thanks, Sunil.