drm/msm/mdp4: Fix issue with LCDC/LVDS port parsing
authorArchit Taneja <architt@codeaurora.org>
Tue, 13 Sep 2016 15:21:34 +0000 (20:51 +0530)
committerRob Clark <robdclark@gmail.com>
Thu, 15 Sep 2016 16:53:37 +0000 (12:53 -0400)
commit13ce5b6e38b7e487d3b900520f8d608122730095
tree59b9ffcda004c9fad42212270d5b448bf2870981
parent8506912b969b60aacc733315eeeb46b014d920a4
drm/msm/mdp4: Fix issue with LCDC/LVDS port parsing

The LVDS port is the first in the list of the output ports in MDP4.
The driver assumed that if the port and its corresponding endpoint
is defined, then there should be a panel node too. This isn't
necessary since boards may not really use a LVDS panel. Don't fail
if there isn't a panel node available.

While we're at it, use of_graph_get_endpoint_by_regs instead of
of_graph_get_next_endpoint to make it more explicit that the LVDS
output is at port 0.

Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c