]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: dsi: Release workaround buffer and DMA
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 13 Jun 2022 14:47:38 +0000 (16:47 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 28 Jun 2022 12:55:21 +0000 (14:55 +0200)
commit89960aea9f81ea4744dff7714822c0e4f2e9d80e
tree923483abaf08e014a720b06e4a3e114d4045b1a0
parent85017e8705d4ece2188d1014e670669031573b35
drm/vc4: dsi: Release workaround buffer and DMA

On Pi0-3 the driver allocates a buffer and requests a DMA channel
because the ARM can't write to DSI1's registers directly.

However, we never release that buffer or channel. Let's add a
device-managed action to release each.

Fixes: a692878e328c ("drm/vc4: Add DSI driver")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20220613144800.326124-12-maxime@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_dsi.c