]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel-simple: Power the panel when probing DP AUX backlight
authorDouglas Anderson <dianders@chromium.org>
Wed, 14 Jul 2021 16:33:50 +0000 (09:33 -0700)
committerDouglas Anderson <dianders@chromium.org>
Thu, 15 Jul 2021 15:02:38 +0000 (08:02 -0700)
commit94ece98373cc20717e8d176a17dc7b3431392cba
tree6739ea6aa46f722b053bf79f2e829123187dd39b
parente9b6ba280eee2b162253626bcbe3f6e5fabcc65a
drm/panel-simple: Power the panel when probing DP AUX backlight

When I tried booting up a device that needed the DP AUX backlight, I
found an error in the logs:
  panel-simple-dp-aux: probe of aux-ti_sn65dsi86.aux.0 failed with error -110

The aux transfers were failing because the panel wasn't powered. Just
like when reading the EDID we need to power the panel when trying to
talk to it. Add the needed pm_runtime calls.

After I do this I can successfully probe the panel and adjust the
backlight on my board.

Fixes: 7487966578f9 ("drm/panel-simple: Support DP AUX backlight")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210714093334.1.Idb41f87e5abae4aee0705db7458b0097fc50e7ab@changeid
drivers/gpu/drm/panel/panel-simple.c