]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/panel: ilitek-ili9882t: If prepare fails, disable GPIO before regulators
authorDouglas Anderson <dianders@chromium.org>
Fri, 17 May 2024 21:36:39 +0000 (14:36 -0700)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 21 May 2024 08:01:20 +0000 (10:01 +0200)
commit554c00181968d43426bfe68c86541b89265075de
treeddd67add5cc08dbb94a1f306a35ec578964182cb
parent6320b9199dd99622668649c234d4e8a99e44a9c8
drm/panel: ilitek-ili9882t: If prepare fails, disable GPIO before regulators

The enable GPIO should clearly be set low before turning off
regulators. That matches both the inverse order that things were
enabled and also the order in unprepare().

Fixes: e2450d32e5fb ("drm/panel: ili9882t: Break out as separate driver")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240517143643.4.Ieb0179065847972a0f13e9a8574a80a5f65f3338@changeid
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240517143643.4.Ieb0179065847972a0f13e9a8574a80a5f65f3338@changeid
drivers/gpu/drm/panel/panel-ilitek-ili9882t.c