]> git.baikalelectronics.ru Git - kernel.git/commit
net: Introduce a new MII time stamping interface.
authorRichard Cochran <richardcochran@gmail.com>
Thu, 26 Dec 2019 02:16:15 +0000 (18:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 03:51:33 +0000 (19:51 -0800)
commit8f550cb41edcf797b9e49c796fada7b0ec9e2e17
treea9723490345512b0883ab8a6c950389f62baf41e
parent869f5e90bcd8c6ee0f457a41939a13a1ab41e889
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>
drivers/net/phy/dp83640.c
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c
include/linux/mii_timestamper.h [new file with mode: 0644]
include/linux/phy.h
net/core/timestamping.c