]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/bridge: tc358768: Fix DSI command tx
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 26 Sep 2024 14:12:46 +0000 (16:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:47:39 +0000 (19:47 +0100)
commitb22ddca004d3c6ba7965eb88d67c544d964894eb
tree566fc6c31e3db12d178e932284cdfadfd1313e40
parent938c13740f8b555986e53c0fcbaf00dcd1fabd4c
drm/bridge: tc358768: Fix DSI command tx

commit 32c4514455b2b8fde506f8c0962f15c7e4c26f1d upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/bridge/tc358768.c