]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: Introduce strict checking of external time stamp options.
authorRichard Cochran <richardcochran@gmail.com>
Thu, 14 Nov 2019 18:45:02 +0000 (10:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 20:48:32 +0000 (12:48 -0800)
commitecfb0bf28b3a3c2fc637b9cc7cb7404b66e19e8c
tree5fa29b3639962a57b0b0e7e81690311ff2b06710
parentaf086523d008aebc91d7f375ad6b61b880a0110f
ptp: Introduce strict checking of external time stamp options.

User space may request time stamps on rising edges, falling edges, or
both.  However, the particular mode may or may not be supported in the
hardware or in the driver.  This patch adds a "strict" flag that tells
drivers to ensure that the requested mode will be honored.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/ptp.c
drivers/net/ethernet/intel/igb/igb_ptp.c
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
drivers/net/ethernet/renesas/ravb_ptp.c
drivers/net/phy/dp83640.c
drivers/ptp/ptp_chardev.c
include/uapi/linux/ptp_clock.h