drm/vc4: Release workaround buffer and DMA in error paths and unbind
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 6 Jul 2021 17:53:28 +0000 (18:53 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:21 +0000 (16:04 +0000)
commita23acf4b3d6e2965c2636b589455a52e84cc56be
tree88744bb378685d471e4c28a1ae58fdd28e0287c8
parent92a0fc7a6f312d32c66cfdacad19f344754a95a9
drm/vc4: Release workaround buffer and DMA in error paths and unbind

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 unbind and the error paths in bind don't release the buffer or
the DMA channel.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_dsi.c