MLK-16986-3: drm: mxsfb: fix connector handling
authorRobert Chiras <robert.chiras@nxp.com>
Fri, 24 Nov 2017 12:03:51 +0000 (14:03 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:08 +0000 (14:50 -0500)
commit437bc53fe44a5afb7e9fadf9bac02f47ebaa5d01
treee002b09abb875eadba96eef744218e93ea763732
parent5244ca3beea51c5250f0fb8f6a2efa4980a93be2
MLK-16986-3: drm: mxsfb: fix connector handling

Since the MXSFB initially was just a simple display pipe using a
drm_panel, the drm_connector was created "in-house", by mxsfb driver.
But, with latest changes, mxsfb also supports a bridge. In case of a
drm_bridge, the the connector is created and initialized by that bridge.
So, for a proper initialization during start-up, we need to take into
consideration that connector, instead of our "in-house" connector.
The connector created and initialized by mxsfb will be used only when
this driver will have a panel.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/mxsfb/mxsfb_crtc.c
drivers/gpu/drm/mxsfb/mxsfb_drv.c
drivers/gpu/drm/mxsfb/mxsfb_drv.h
drivers/gpu/drm/mxsfb/mxsfb_out.c