Re: [PATCH v2] memory: tegra: Shut down Tegra210 EMC timers before teardown

From: Krzysztof Kozlowski

Date: Fri Oct 30 2026 - 10:57:19 EST



On Wed, 14 Oct 2026 20:28:52 -0400, Myeonghun Pak wrote:
> The training and refresh timers can outlive the EMC state on removal
> or probe failure after clock attachment, causing use-after-free.
>
> Shut down both timers before detaching the clock provider and releasing
> the timing tables to wait for callbacks and prevent rearming. Initialize
> them before clock attachment, since set_rate() can start training.
>
> [...]

Applied, thanks!

[1/1] memory: tegra: Shut down Tegra210 EMC timers before teardown
https://git.kernel.org/krzk/linux-mem-ctrl/c/394c350a34b77f1bb065b675d356ab55b6462ed8

Best regards,
--
Krzysztof Kozlowski <krzk@xxxxxxxxxx>