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)
commitcc5a3fc041f0104d97ac61b0423ec533d7a93214
tree512775c76eb2410d37538c08f416ff17662226d8
parent74c06c282ae63560fcf4073d1564f054d96285ec
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