summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2015-01-07 23:49:41 +0100
committerPhilipp Zabel <p.zabel@pengutronix.de>2015-02-23 17:19:01 +0100
commit6e8958ec0ecfd83691e6854839f917d3eaca236b (patch)
tree15a14cb37c3bad2e0db6da600b2d24d88fb205f2 /drivers/gpu/drm
parentdrm/imx: dw_hdmi-imx: add mode_valid callback prune unsupported modes (diff)
downloadlinux-6e8958ec0ecfd83691e6854839f917d3eaca236b.tar.xz
linux-6e8958ec0ecfd83691e6854839f917d3eaca236b.zip
drm/imx: dw_hdmi-imx: add end of array element to current control array
The loop iterating over curr_ctrl in dw_hdmi terminates on mpixelclock == ~0UL, so there needs to be an end of list element here in case a mode with a pixel clock larger than 216 MHz is set. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/imx/dw_hdmi-imx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/dw_hdmi-imx.c b/drivers/gpu/drm/imx/dw_hdmi-imx.c
index d25aaef3cba6..87fe8ed92ebe 100644
--- a/drivers/gpu/drm/imx/dw_hdmi-imx.c
+++ b/drivers/gpu/drm/imx/dw_hdmi-imx.c
@@ -70,7 +70,9 @@ static const struct dw_hdmi_curr_ctrl imx_cur_ctr[] = {
118800000, { 0x091c, 0x091c, 0x06dc },
}, {
216000000, { 0x06dc, 0x0b5c, 0x091c },
- }
+ }, {
+ ~0UL, { 0x0000, 0x0000, 0x0000 },
+ },
};
static const struct dw_hdmi_sym_term imx_sym_term[] = {