]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: track available ptp vclocks information
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 30 Jun 2021 08:11:54 +0000 (16:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:08:18 +0000 (13:08 -0700)
commita1a64115ef1e2591610c5ffa4fc1c96f7e3bd735
tree493c2951ee203f92d80b568cccc28da4e24635bd
parent52c449a86022104fa268b1349e295313e362aded
ptp: track available ptp vclocks information

Track available ptp vclocks information. Record index values
of available ptp vclocks during registering and unregistering.

This is preparation for supporting ptp vclocks info query
through ethtool.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_clock.c
drivers/ptp/ptp_private.h
drivers/ptp/ptp_sysfs.c