linux/drivers/gpu/drm/sun4i
Ondrej Jirman ab170c2736 Revert "drm/sun4i: add lvds mode_valid function"
The reverted commit broke LVDS output on TBS A711 Tablet. That tablet
has simple-panel node that has fixed pixel clock-frequency that A83T
SoC used in the tablet can't generate exactly.

Requested rate is 52000000 and rounded_rate is calculated as 51857142.
It's close enough for it to work in practice, but with strict check
in the reverted commit, the mode is rejected needlessly in this case.

DT allows to specify a range of values for simple-panel/clock-frequency,
but driver doesn't respect that ATM. Given that TBS A711 is the single
user of sun4i-lvds driver, let's revert that commit for now, until
a better solution for the problem is found.

Also see: https://patchwork.kernel.org/patch/9446385/ for relevant
discussion (or search for "[RFC] drm/sun4i: rgb: Add 5% tolerance
to dot clock frequency check").

Fixes: e4e4b7ad50 ("drm/sun4i: add lvds mode_valid function")
Reported-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180421045155.15332-1-megous@megous.com
Signed-off-by: Sean Paul <seanpaul@chromium.org>
2018-04-25 15:03:12 -04:00
..
Kconfig
Makefile
sun4i_backend.c drm/sun4i: backend: Support YUV planes 2018-03-19 22:04:57 +01:00
sun4i_backend.h drm/sun4i: backend: Support YUV planes 2018-03-19 22:04:57 +01:00
sun4i_crtc.c Linux 4.16-rc7 2018-03-28 14:30:41 +10:00
sun4i_crtc.h
sun4i_dotclock.c
sun4i_dotclock.h
sun4i_drv.c Linux 4.16-rc7 2018-03-28 14:30:41 +10:00
sun4i_drv.h
sun4i_framebuffer.c
sun4i_framebuffer.h
sun4i_frontend.c
sun4i_frontend.h
sun4i_hdmi_ddc_clk.c
sun4i_hdmi_enc.c drm/sun4i: hdmi: Fix another error handling path in 'sun4i_hdmi_bind()' 2018-03-20 11:50:28 +01:00
sun4i_hdmi_i2c.c
sun4i_hdmi_tmds_clk.c
sun4i_hdmi.h
sun4i_layer.c drm/sun4i: backend: Support YUV planes 2018-03-19 22:04:57 +01:00
sun4i_layer.h
sun4i_lvds.c Revert "drm/sun4i: add lvds mode_valid function" 2018-04-25 15:03:12 -04:00
sun4i_lvds.h
sun4i_rgb.c Linux 4.16-rc7 2018-03-28 14:30:41 +10:00
sun4i_rgb.h
sun4i_tcon.c Linux 4.16-rc7 2018-03-28 14:30:41 +10:00
sun4i_tcon.h Linux 4.16-rc7 2018-03-28 14:30:41 +10:00
sun4i_tv.c
sun6i_drc.c drm/sun4i: Add driver support for A80 display pipeline 2018-03-19 15:40:24 +01:00
sun8i_csc.c
sun8i_csc.h
sun8i_dw_hdmi.c
sun8i_dw_hdmi.h
sun8i_hdmi_phy_clk.c
sun8i_hdmi_phy.c
sun8i_mixer.c
sun8i_mixer.h
sun8i_ui_layer.c
sun8i_ui_layer.h
sun8i_ui_scaler.c
sun8i_ui_scaler.h
sun8i_vi_layer.c
sun8i_vi_layer.h
sun8i_vi_scaler.c
sun8i_vi_scaler.h
sunxi_engine.h