drm/vc4: Fix oops dereferencing DPI's connector since panel_bridge.
authorEric Anholt <eric@anholt.net>
Fri, 9 Mar 2018 23:32:56 +0000 (15:32 -0800)
committerSean Paul <seanpaul@chromium.org>
Mon, 7 May 2018 14:19:11 +0000 (10:19 -0400)
commit164c2416dd40770aba5814f93da835e8a9f7196d
tree63871b8002836130b8bdc0652788ef3cfa1ab89e
parentb5cb2e5a1f64d882a155add7522247ab0523051e
drm/vc4: Fix oops dereferencing DPI's connector since panel_bridge.

In the cleanup, I didn't notice that we needed to dereference the
connector for the bus_format.  Fix the regression by looking up the
first (and only) connector attached to us, and assume that its
bus_format is what we want.  Some day it would be good to have that
part of display_info attached to the bridge, instead.

v2: Fix stray whitespace change

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 7b1298e05310 ("drm/vc4: Switch DPI to using the panel-bridge helper.")
Link: https://patchwork.freedesktop.org/patch/msgid/20180309233256.1667-1-eric@anholt.net
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/vc4/vc4_dpi.c