linux_old1/drivers/gpu/drm/bridge/adv7511
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
..
Kconfig drm/bridge: adv7511: fix spelling of driver name in Kconfig 2018-05-04 11:29:03 +05:30
Makefile drm: adv7511/33: add HDMI CEC support 2017-10-09 16:17:02 +05:30
adv7511.h drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
adv7511_audio.c drm/bridge: adv7511: Constify HDMI CODEC platform data 2017-09-16 15:11:04 +05:30
adv7511_cec.c drm/bridge: adv7511/33: Fix adv7511_cec_init() failure handling 2017-11-30 10:37:11 +05:30
adv7511_drv.c drm/bridge: adv7511: Fix low refresh rate selection 2019-05-13 15:02:18 -04:00
adv7533.c drm: bridge: Constify mode arguments to bridge .mode_set() operation 2019-01-14 03:51:14 +02:00