]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: Add missing support for PTP_CLK_REQ_PPS request
authorEugenia Emantayev <eugenia@mellanox.com>
Sun, 28 May 2017 11:27:02 +0000 (14:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2017 15:33:59 +0000 (08:33 -0700)
commitf0287ec6c99486058652c0d95cabd686e4fb7a39
tree89d5d65ee6af1e7c7f73e61d1a7cf5ce32e89a26
parentb2ded41c2cf38d4c48062c6a9d57403f52b3b539
net/mlx5e: Add missing support for PTP_CLK_REQ_PPS request

[ Upstream commit cf5033089b078303b102b65e3ccbbfa3ce0f4367 ]

Add the missing option to enable the PTP_CLK_PPS function.
In this case pin should be configured as 1PPS IN first and
then it will be connected to PPS mechanism.
Events will be reported as PTP_CLOCK_PPSUSR events to relevant sysfs.

Fixes: ee7f12205abc ('net/mlx5e: Implement 1PPS support')
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_clock.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c