diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2016-12-07 03:00:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-07 19:13:47 +0300 |
commit | 8fcd68914e447af006f9597a2688754517fabfe9 (patch) | |
tree | 6df7f840e51d7db7e4c1af2413cc7a3ebd28ee85 /drivers/net/ethernet/ti/cpts.c | |
parent | 6c691405bcaf8f1a7413416cc757756cfb060875 (diff) | |
download | linux-8fcd68914e447af006f9597a2688754517fabfe9.tar.xz |
net: ethernet: ti: cpts: disable cpts when unregistered
The cpts now is left enabled after unregistration.
Hence, disable it in cpts_unregister().
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/cpts.c')
-rw-r--r-- | drivers/net/ethernet/ti/cpts.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c index 3dda6d5ba0aa..d3c1ac5e9336 100644 --- a/drivers/net/ethernet/ti/cpts.c +++ b/drivers/net/ethernet/ti/cpts.c @@ -404,6 +404,10 @@ void cpts_unregister(struct cpts *cpts) ptp_clock_unregister(cpts->clock); cancel_delayed_work_sync(&cpts->overflow_work); } + + cpts_write32(cpts, 0, int_enable); + cpts_write32(cpts, 0, control); + if (cpts->refclk) cpts_clk_release(cpts); } |