linux/drivers/gpu/drm/bridge
Matt Redfearn 67793bd3b3 drm/bridge: adv7511: Fix low refresh rate selection
The driver currently sets register 0xfb (Low Refresh Rate) based on the
value of mode->vrefresh. Firstly, this field is specified to be in Hz,
but the magic numbers used by the code are Hz * 1000. This essentially
leads to the low refresh rate always being set to 0x01, since the
vrefresh value will always be less than 24000. Fix the magic numbers to
be in Hz.
Secondly, according to the comment in drm_modes.h, the field is not
supposed to be used in a functional way anyway. Instead, use the helper
function drm_mode_vrefresh().

Fixes: 9c8af882bf ("drm: Add adv7511 encoder driver")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Matt Redfearn <matt.redfearn@thinci.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190424132210.26338-1-matt.redfearn@thinci.com
2019-05-13 15:02:18 -04:00
..
adv7511 drm/bridge: adv7511: Fix low refresh rate selection 2019-05-13 15:02:18 -04:00
analogix drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
synopsys drm/bridge: dw-hdmi: disable SCDC configuration for invalid setups 2019-03-25 13:15:00 +01:00
analogix-anx78xx.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
analogix-anx78xx.h drm/bridge: Add Analogix anx78xx support 2016-05-12 11:32:14 +02:00
cdns-dsi.c drm/bridge: cdns: Convert to phy framework 2019-02-07 09:48:40 +01:00
dumb-vga-dac.c drm/bridge: use bus flags in bridge timings 2019-03-18 11:42:13 +02:00
Kconfig drm/bridge: cdns: Convert to phy framework 2019-02-07 09:48:40 +01:00
lvds-encoder.c drm/bridge: lvds-encoder: add powerdown-gpios support 2019-01-18 09:27:54 +01:00
Makefile drm/bridge: tc358764: Add DSI to LVDS bridge driver 2018-07-27 09:09:57 +02:00
megachips-stdpxxxx-ge-b850v3-fw.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
nxp-ptn3460.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
panel.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
parade-ps8622.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
sii902x.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
sii9234.c drm/bridge: add Silicon Image SiI9234 driver 2017-10-06 14:28:22 +02:00
sil-sii8620.c drm/edid: Pass connector to AVI infoframe functions 2019-01-10 19:01:06 +02:00
sil-sii8620.h drm/bridge/sii8620: add HSIC initialization code 2017-02-02 15:15:30 +05:30
tc358764.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
tc358767.c drm: Use new DRM_BUS_FLAG_*_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags 2019-03-18 11:42:13 +02:00
thc63lvd1024.c drm: bridge: thc63: Restrict modes based on hardware operating frequency 2018-09-25 00:40:51 +03:00
ti-sn65dsi86.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
ti-tfp410.c drm/bridge: ti-tfp410: Set the bus_format 2019-04-12 09:39:01 +02:00