Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fcd6891 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by David S. Miller
Browse files

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: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6c691405
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
}