drm/komeda - At init write GCU control block to handle already on DPU
authorCarsten Haitzler <carsten.haitzler@arm.com>
Mon, 6 Jun 2022 11:47:13 +0000 (12:47 +0100)
committerLiviu Dudau <liviu.dudau@arm.com>
Fri, 22 Jul 2022 12:12:46 +0000 (13:12 +0100)
commita8ff2cd916e62b740718a908fbaa1e9ec8a147f1
treeab0f67708821703e80a2f4f61de6cfd5f958c7ab
parent000a2f0498f29b0831496bb1fdab3354b00704a2
drm/komeda - At init write GCU control block to handle already on DPU

If something has already set up the DPU before the komeda driver comes
up, it will fail to init because it was just writing to the SRST bit in
the GCU control register and ignoring others. This resulted in TBU
bringup stalling and init failing. By writing completely we also  set the
mode back to 0 (inactive) too and thus TBU bringup works.

Signed-off-by: Carsten Haitzler <carsten.haitzler@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220606114714.175499-2-carsten.haitzler@foss.arm.com
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c