drm/bridge: tc358768: Fix DSI command txdrm-misc-fixes-2024-11-14
commit32c4514455b2b8fde506f8c0962f15c7e4c26f1d
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 26 Sep 2024 14:12:46 +0000 (26 16:12 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 14 Nov 2024 10:29:42 +0000 (14 11:29 +0100)
treeaee4f1a75dba2686de2daa6807ff27a44819996d
parent93d1f41a82de382845af460bf03bcb17dcbf08c5
drm/bridge: tc358768: Fix DSI command tx

Wait for the command transmission to be completed in the DSI transfer
function polling for the dc_start bit to go back to idle state after the
transmission is started.

This is documented in the datasheet and failures to do so lead to
commands corruption.

Fixes: ff1ca6397b1d ("drm/bridge: Add tc358768 driver")
Cc: stable@vger.kernel.org
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240926141246.48282-1-francesco@dolcini.it
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240926141246.48282-1-francesco@dolcini.it
drivers/gpu/drm/bridge/tc358768.c