drm/panthor: Fix the panthor_gpu_coherency_init() error path
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 14 Apr 2025 13:01:20 +0000 (15:01 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 17 Apr 2025 09:29:49 +0000 (11:29 +0200)
commit938aaed555f3add76531cd204e2d4128ecb84ace
tree0f2fa4744c77180339f324d435702cd53966899c
parentd6fe216caf15d196e1bf76591440f8f17d58e7ee
drm/panthor: Fix the panthor_gpu_coherency_init() error path

The panthor_gpu_coherency_init() call has been moved around, but the
error path hasn't been adjusted accordingly. Make sure we undo what
has been done before this call in case of failure.

Fixes: 7d5a3b22f5b5 ("drm/panthor: Call panthor_gpu_coherency_init() after PM resume()")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/dri-devel/4da470aa-4f84-460e-aff8-dabc8cc4da15@stanley.mountain/T/#t
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://lore.kernel.org/r/20250414130120.581274-1-boris.brezillon@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_device.c