drm/mipi-dbi: Lock SPI bus before setting D/C GPIO
authorOtto Pflüger <otto.pflueger@abscue.de>
Mon, 24 Jul 2023 06:56:53 +0000 (08:56 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Wed, 2 Aug 2023 11:18:07 +0000 (13:18 +0200)
commit8cc8ccbaa5d89b65a32f0260b0cd2288d2c9b6dc
tree02179c3cc499b92f0aab81412628704415a5c0a3
parent8e4bb53c902ed2b06a2c4778e6dbb2c1eeec4960
drm/mipi-dbi: Lock SPI bus before setting D/C GPIO

Multiple displays may be connected to the same bus and share a D/C GPIO,
so the display driver needs exclusive access to the bus to ensure that
it can control the D/C GPIO safely.

Signed-off-by: Otto Pflüger <otto.pflueger@abscue.de>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: David Lechner <david@lechnology.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230724065654.5269-2-otto.pflueger@abscue.de
drivers/gpu/drm/drm_mipi_dbi.c
drivers/gpu/drm/tiny/ili9225.c
drivers/gpu/drm/tiny/ili9486.c