Skip to content

add hwtstamp_get callback to phy drivers

Vadim Fedorenko netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 1 replyApplied 7/7
  2. v47 patches 2 repliesSuperseded
  3. v39 patches 14 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v29 patches12 repliesSuperseded
v18 patches1 replySuperseded

Changes in v5 from the cover letter

* adjust comment about dev_get_hwtstamp_phylib() regarding new callback v3 -> v4:
* drop patches 5 and 6 from previous version as these drivers need logic upgrade to report configuration correctly. I'll send these updates as separate patchset

Patches in v5 All 7 applied

#Subject and filesSizeRepliesApplied
1/7phy: rename hwtstamp callback to hwtstamp_setdrivers/net/ethernet/ti/netcp_ethss.c drivers/net/phy/bcm-phy-ptp.c drivers/net/phy/dp83640.c +8 more+46 -430 repliesApplied
2/7phy: add hwtstamp_get callback to phy driversdrivers/net/phy/phy.c include/linux/mii_timestamper.h net/core/dev_ioctl.c+13 -40 repliesApplied
3/7net: phy: broadcom: add HW timestamp configuration reportingdrivers/net/phy/bcm-phy-ptp.c+13 -01 replyApplied
4/7net: phy: dp83640: add HW timestamp configuration reportingdrivers/net/phy/dp83640.c+17 -40 repliesApplied
5/7phy: mscc: add HW timestamp configuration reportingdrivers/net/phy/mscc/mscc_ptp.c+13 -00 repliesApplied
6/7net: phy: nxp-c45-tja11xx: add HW timestamp configuration reportingdrivers/net/phy/nxp-c45-tja11xx.c+14 -00 repliesApplied
7/7ptp: ptp_ines: add HW timestamp configuration reportingdrivers/ptp/ptp_ines.c+23 -00 repliesApplied

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchRussell King (Oracle)Kory MaincentAndrew LunnFlorian Fainelli
1/7R-b R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [PATCH net-next v5 0/7] add hwtstamp_get callback to phy drivers

PHY drivers are able to configure HW time stamping and are not able to report configuration back to user space. Add callback to report configuration like it's done for net_device and add implementation to the drivers.

v4 -> v5:
* adjust comment about dev_get_hwtstamp_phylib() regarding new callback v3 -> v4:
* drop patches 5 and 6 from previous version as these drivers need logic upgrade to report configuration correctly. I'll send these updates as separate patchset
v2 -> v3:
* remove SIOCGHWTSTAMP in phy_mii_ioctl() as we discourage usage of deprecated interface
v1 -> v2:
* split the first patch to rename part and add new callback part
* fix netcp driver calling mii_timestamper::hwtstamp

Vadim Fedorenko (7):
phy: rename hwtstamp callback to hwtstamp_set
phy: add hwtstamp_get callback to phy drivers
net: phy: broadcom: add HW timestamp configuration reporting
net: phy: dp83640: add HW timestamp configuration reporting
phy: mscc: add HW timestamp configuration reporting
net: phy: nxp-c45-tja11xx: add HW timestamp configuration reporting
ptp: ptp_ines: add HW timestamp configuration reporting

 drivers/net/ethernet/ti/netcp_ethss.c |  2 +-
 drivers/net/phy/bcm-phy-ptp.c         | 21 ++++++++++++++----
 drivers/net/phy/dp83640.c             | 29 ++++++++++++++++++-------
 drivers/net/phy/micrel.c              | 16 +++++++-------
 drivers/net/phy/microchip_rds_ptp.c   |  8 +++----
 drivers/net/phy/mscc/mscc_ptp.c       | 21 ++++++++++++++----
 drivers/net/phy/nxp-c45-tja11xx.c     | 22 +++++++++++++++----
 drivers/net/phy/phy.c                 | 14 ++++++++----
 drivers/ptp/ptp_ines.c                | 31 +++++++++++++++++++++++----
 include/linux/mii_timestamper.h       | 13 +++++++----
 include/linux/phy.h                   |  4 ++--
 net/core/dev_ioctl.c                  |  9 ++++----
 12 files changed, 139 insertions(+), 51 deletions(-)
Signature · 1 line
2.47.3