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)
commit82a4e71b1565dea8387f54503e806cf374e779ec
tree4d53ca808dccc0a1d5db1d7e270f938d3c23b48a
parentcc9b27cdf7bd3c86df73439758ac1564bc8f5bbe
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: 4c55215c ("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