]> 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:50:36 +0000 (19:50 +0100)
commit69434d929adf4198ad065897529499463dd04761
treea0a8bb5bc1053ad9cfe6c1ba07d076c6906da8ba
parentf701eb601470bfc0a551913ce5f6ebaa770f0ce0
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