]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: panel-simple: Stash DP AUX bus; allow using it for DDC
authorDouglas Anderson <dianders@chromium.org>
Fri, 11 Jun 2021 17:17:42 +0000 (10:17 -0700)
committerDouglas Anderson <dianders@chromium.org>
Fri, 11 Jun 2021 19:31:22 +0000 (12:31 -0700)
commitdce5146154a35dbb77e70de81a6b272001ab9173
tree512775c76eb2410d37538c08f416ff17662226d8
parent4f702fc4f39018aa5460a588c67bbe6c8688debe
drm/panel: panel-simple: Stash DP AUX bus; allow using it for DDC

If panel-simple is instantiated as a DP AUX bus endpoint then we have
access to the DP AUX bus. Let's stash it in the panel-simple
structure, leaving it NULL for the cases where the panel is
instantiated in other ways.

If we happen to have access to the DP AUX bus and we weren't provided
the ddc-i2c-bus in some other manner, let's use the DP AUX bus for it.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210611101711.v10.6.I18e60221f6d048d14d6c50a770b15f356fa75092@changeid
drivers/gpu/drm/panel/panel-simple.c