summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/common/cavium_ptp.c
Commit message (Collapse)AuthorAgeFilesLines
* net: cavium: clean up return value check in cavium_ptp_probeYueHaibing2018-11-231-4/+0
| | | | | | | | ptp_clock_register never return NULL, so no need check this in cavium_ptp_probe. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: cavium: use module_pci_driver to simplify the codeWei Yongjun2018-03-291-12/+1
| | | | | | | | Use the module_pci_driver() macro to make the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: cavium: fix NULL pointer dereference in cavium_ptp_putJan Glauber2018-02-121-0/+2
| | | | | | | | | | | Prevent a kernel panic on reboot if ptp_clock is NULL by checking the ptp pointer before using it. Signed-off-by: Jan Glauber <jglauber@cavium.com> Fixes: 8c56df372bc1 ("net: add support for Cavium PTP coprocessor") Cc: Radoslaw Biernacki <rad@semihalf.com> Cc: Aleksey Makarov <aleksey.makarov@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: add support for Cavium PTP coprocessorRadoslaw Biernacki2018-01-161-0/+353
This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki <rad@semihalf.com> Signed-off-by: Aleksey Makarov <aleksey.makarov@cavium.com> Acked-by: Philippe Ombredanne <pombredanne@nexb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
OpenPOWER on IntegriCloud