]> 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)
commit2450b6a5f1901526619f4cc79fcff50447edebd1
tree265c55c97248a89283edc77b50190039f0bed1b4
parentd292beb2e995a824340428505fab3426a1d822fe
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