]> git.baikalelectronics.ru Git - kernel.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)
commite6dc4e9e961f4e62430fb467f0bb68e5e75ae63d
tree265c55c97248a89283edc77b50190039f0bed1b4
parent8f550cb41edcf797b9e49c796fada7b0ec9e2e17
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