]> git.baikalelectronics.ru Git - kernel.git/commit
qede: Add support for PTP resource locking.
authorsudarsana.kalluru@cavium.com <sudarsana.kalluru@cavium.com>
Wed, 26 Apr 2017 16:00:51 +0000 (09:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Apr 2017 20:51:34 +0000 (16:51 -0400)
commit18383b57688cec835d2fd42c39eef59523ac77bb
treeb268db630aaa40b7c670a32bc50fc15d5cf33561
parent30ddae2750a1243bee9582334a19cc185301ee30
qede: Add support for PTP resource locking.

The patch adds necessary changes to the driver to use qed resource
locking functionality. Currently the ptp initialization is spread
between driver probe/open implementations, associated APIs are
qede_ptp_register_phc()/qede_ptp_start(). Clubbed this functionality
into single API qed_ptp_enable() to simplify the usage of qed resource
locking implementation. The new API will be invoked in the probe path.
Similarly the ptp clean-up code is moved to qede_ptp_disable() which
gets invoked in the driver unload path.

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_main.c
drivers/net/ethernet/qlogic/qede/qede_ptp.c
drivers/net/ethernet/qlogic/qede/qede_ptp.h