]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5: Reject requests to enable time stamping on both edges.
authorRichard Cochran <richardcochran@gmail.com>
Thu, 14 Nov 2019 18:45:06 +0000 (10:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 20:48:33 +0000 (12:48 -0800)
commitaea5397db232c1680c41ec48cbe74a424adbef51
treef2c2aef1940782890d88ff1dfedc3745a7d71799
parent306d5b53b8eed98ee50b5e753bad0f4f4c523316
mlx5: Reject requests to enable time stamping on both edges.

This driver enables rising edge or falling edge, but not both, and so
this patch validates that the request contains only one of the two
edges.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c