]> asedeno.scripts.mit.edu Git - linux.git/commit
net: Add a layer for non-PHY MII time stamping drivers.
authorRichard Cochran <richardcochran@gmail.com>
Thu, 26 Dec 2019 02:16:16 +0000 (18:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 03:51:33 +0000 (19:51 -0800)
commit767ff483731502a0fc34f34a3a0851aca175eb71
tree265c55c97248a89283edc77b50190039f0bed1b4
parent4715f65ffa0520af0680dbfbedbe349f175adaf4
net: Add a layer for non-PHY MII time stamping drivers.

While PHY time stamping drivers can simply attach their interface
directly to the PHY instance, stand alone drivers require support in
order to manage their services.  Non-PHY MII time stamping drivers
have a control interface over another bus like I2C, SPI, UART, or via
a memory mapped peripheral.  The controller device will be associated
with one or more time stamping channels, each of which sits snoops in
on a MII bus.

This patch provides a glue layer that will enable time stamping
channels to find their controlling device.

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/Makefile
drivers/net/phy/mii_timestamper.c [new file with mode: 0644]
include/linux/mii_timestamper.h
net/Kconfig