summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/common/cavium_ptp.c
Commit message (Collapse)AuthorAgeFilesLines
* net: cavium: fix driver nameStephen Hemminger2019-08-181-1/+1
| | | | | | | | | | | | The driver name gets exposed in sysfs under /sys/bus/pci/drivers so it should look like other devices. Change it to be common format (instead of "Cavium PTP"). This is a trivial fix that was observed by accident because Debian kernels were building this driver into kernel (bug). Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* net: cavium: clean up return value check in cavium_ptp_probeYueHaibing2018-11-241-4/+0Star
| | | | | | | | 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/+1Star
| | | | | | | | 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>