Yangbo Lu 73f37068d5 ptp: support ptp physical/virtual clocks conversion
Support ptp physical/virtual clocks conversion via sysfs.
There will be a new attribute n_vclocks under ptp physical
clock sysfs.

- In default, the value is 0 meaning only ptp physical clock
  is in use.
- Setting the value can create corresponding number of ptp
  virtual clocks to use. But current physical clock is guaranteed
  to stay free running.
- Setting the value back to 0 can delete virtual clocks and back
  use physical clock again.

Another new attribute max_vclocks control the maximum number of
ptp vclocks.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-07-01 13:08:18 -07:00
..
2021-06-30 15:51:09 -07:00
2021-06-24 18:49:01 -06:00
2021-06-30 15:51:09 -07:00
2021-06-30 15:51:09 -07:00
2021-04-18 09:36:56 +03:00
2021-06-30 12:21:16 -07:00
2021-06-12 12:13:55 -07:00
2021-06-11 11:53:03 -06:00
2021-06-29 10:53:48 -07:00
2021-06-16 09:03:52 -07:00
2021-04-26 12:11:52 -07:00
2021-06-30 11:15:39 -07:00
2021-06-29 11:21:35 -07:00
2021-05-01 10:14:08 -07:00
2021-06-29 13:39:41 -07:00
2021-06-30 11:15:39 -07:00
2021-06-30 12:21:16 -07:00
2021-06-30 15:51:09 -07:00
2021-06-30 12:12:56 -07:00
2021-06-30 11:15:39 -07:00
2021-06-30 12:12:56 -07:00
2021-07-01 13:04:41 -07:00
2021-06-30 12:21:16 -07:00
2021-06-29 11:21:35 -07:00
2021-05-05 12:53:16 -07:00
2021-05-04 11:13:33 -07:00
2021-05-05 13:24:11 -07:00
2021-06-01 16:44:09 +01:00
2021-06-30 15:51:09 -07:00
2021-06-30 12:12:56 -07:00
2021-06-30 15:51:09 -07:00
2021-06-28 12:14:19 -07:00
2021-06-30 15:51:09 -07:00
2021-06-16 08:53:58 -06:00
2021-06-29 11:21:35 -07:00