]> git.baikalelectronics.ru Git - kernel.git/commit
qede: Adverstise software timestamp caps when PHC is not available.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Mon, 2 Jul 2018 03:03:08 +0000 (20:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jul 2018 11:41:30 +0000 (20:41 +0900)
commite471f57c181cf87ee8452524d85f77b0c918d7f2
tree4d53ca808dccc0a1d5db1d7e270f938d3c23b48a
parent7db5f7c9f6fba8d3348e42923d5d2ea4be250e64
qede: Adverstise software timestamp caps when PHC is not available.

When ptp clock is not available for a PF (e.g., higher PFs in NPAR mode),
get-tsinfo() callback should return the software timestamp capabilities
instead of returning the error.

Fixes: 4b070fbe ("qede: Add driver support for PTP")
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_ptp.c