Revision ab170c27361d1578b4769276ce2bbdb14394743d authored by Ondrej Jirman on 21 April 2018, 04:51:55 UTC, committed by Sean Paul on 25 April 2018, 19:03:12 UTC
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: e4e4b7ad50cf ("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>
1 parent 6d08b06
History
File Mode Size
9p
bluetooth
caif
iucv
netfilter
netns
nfc
phonet
sctp
tc_act
6lowpan.h -rw-r--r-- 10.0 KB
Space.h -rw-r--r-- 1.1 KB
act_api.h -rw-r--r-- 6.7 KB
addrconf.h -rw-r--r-- 12.8 KB
af_ieee802154.h -rw-r--r-- 1.6 KB
af_rxrpc.h -rw-r--r-- 2.9 KB
af_unix.h -rw-r--r-- 2.2 KB
af_vsock.h -rw-r--r-- 7.2 KB
ah.h -rw-r--r-- 382 bytes
arp.h -rw-r--r-- 1.9 KB
atmclip.h -rw-r--r-- 1.5 KB
ax25.h -rw-r--r-- 14.6 KB
ax88796.h -rw-r--r-- 998 bytes
bond_3ad.h -rw-r--r-- 9.8 KB
bond_alb.h -rw-r--r-- 6.6 KB
bond_options.h -rw-r--r-- 3.9 KB
bonding.h -rw-r--r-- 19.0 KB
busy_poll.h -rw-r--r-- 3.8 KB
calipso.h -rw-r--r-- 2.1 KB
cfg80211-wext.h -rw-r--r-- 2.0 KB
cfg80211.h -rw-r--r-- 227.0 KB
cfg802154.h -rw-r--r-- 10.9 KB
checksum.h -rw-r--r-- 4.6 KB
cipso_ipv4.h -rw-r--r-- 8.2 KB
cls_cgroup.h -rw-r--r-- 2.1 KB
codel.h -rw-r--r-- 5.6 KB
codel_impl.h -rw-r--r-- 8.0 KB
codel_qdisc.h -rw-r--r-- 2.9 KB
compat.h -rw-r--r-- 1.6 KB
datalink.h -rw-r--r-- 619 bytes
dcbevent.h -rw-r--r-- 1.3 KB
dcbnl.h -rw-r--r-- 4.2 KB
devlink.h -rw-r--r-- 16.9 KB
dn.h -rw-r--r-- 6.9 KB
dn_dev.h -rw-r--r-- 5.4 KB
dn_fib.h -rw-r--r-- 4.0 KB
dn_neigh.h -rw-r--r-- 968 bytes
dn_nsp.h -rw-r--r-- 5.8 KB
dn_route.h -rw-r--r-- 4.4 KB
dsa.h -rw-r--r-- 14.8 KB
dsfield.h -rw-r--r-- 1.1 KB
dst.h -rw-r--r-- 12.6 KB
dst_cache.h -rw-r--r-- 2.5 KB
dst_metadata.h -rw-r--r-- 5.0 KB
dst_ops.h -rw-r--r-- 2.0 KB
erspan.h -rw-r--r-- 7.7 KB
esp.h -rw-r--r-- 877 bytes
ethoc.h -rw-r--r-- 537 bytes
fib_notifier.h -rw-r--r-- 1.3 KB
fib_rules.h -rw-r--r-- 5.3 KB
firewire.h -rw-r--r-- 636 bytes
flow.h -rw-r--r-- 5.8 KB
flow_dissector.h -rw-r--r-- 7.2 KB
fou.h -rw-r--r-- 549 bytes
fq.h -rw-r--r-- 2.7 KB
fq_impl.h -rw-r--r-- 6.9 KB
garp.h -rw-r--r-- 2.6 KB
gen_stats.h -rw-r--r-- 2.5 KB
genetlink.h -rw-r--r-- 11.7 KB
geneve.h -rw-r--r-- 1.7 KB
gre.h -rw-r--r-- 3.1 KB
gro_cells.h -rw-r--r-- 443 bytes
gtp.h -rw-r--r-- 633 bytes
gue.h -rw-r--r-- 3.2 KB
hwbm.h -rw-r--r-- 937 bytes
icmp.h -rw-r--r-- 1.5 KB
ieee80211_radiotap.h -rw-r--r-- 6.7 KB
ieee802154_netdev.h -rw-r--r-- 9.1 KB
if_inet6.h -rw-r--r-- 6.1 KB
ife.h -rw-r--r-- 1.0 KB
ila.h -rw-r--r-- 498 bytes
inet6_connection_sock.h -rw-r--r-- 976 bytes
inet6_hashtables.h -rw-r--r-- 3.7 KB
inet_common.h -rw-r--r-- 2.0 KB
inet_connection_sock.h -rw-r--r-- 10.5 KB
inet_ecn.h -rw-r--r-- 6.0 KB
inet_frag.h -rw-r--r-- 3.7 KB
inet_hashtables.h -rw-r--r-- 13.2 KB
inet_sock.h -rw-r--r-- 9.1 KB
inet_timewait_sock.h -rw-r--r-- 3.8 KB
inetpeer.h -rw-r--r-- 3.3 KB
ip.h -rw-r--r-- 18.9 KB
ip6_checksum.h -rw-r--r-- 2.9 KB
ip6_fib.h -rw-r--r-- 10.9 KB
ip6_route.h -rw-r--r-- 8.2 KB
ip6_tunnel.h -rw-r--r-- 4.8 KB
ip_fib.h -rw-r--r-- 11.3 KB
ip_tunnels.h -rw-r--r-- 13.1 KB
ip_vs.h -rw-r--r-- 46.6 KB
ipcomp.h -rw-r--r-- 659 bytes
ipconfig.h -rw-r--r-- 811 bytes
ipv6.h -rw-r--r-- 31.6 KB
ipx.h -rw-r--r-- 4.4 KB
iw_handler.h -rw-r--r-- 20.9 KB
kcm.h -rw-r--r-- 5.0 KB
l3mdev.h -rw-r--r-- 5.8 KB
lapb.h -rw-r--r-- 4.8 KB
lib80211.h -rw-r--r-- 3.9 KB
llc.h -rw-r--r-- 4.3 KB
llc_c_ac.h -rw-r--r-- 9.3 KB
llc_c_ev.h -rw-r--r-- 10.7 KB
llc_c_st.h -rw-r--r-- 1.7 KB
llc_conn.h -rw-r--r-- 4.0 KB
llc_if.h -rw-r--r-- 2.2 KB
llc_pdu.h -rw-r--r-- 14.1 KB
llc_s_ac.h -rw-r--r-- 1.6 KB
llc_s_ev.h -rw-r--r-- 2.2 KB
llc_s_st.h -rw-r--r-- 947 bytes
llc_sap.h -rw-r--r-- 1.1 KB
lwtunnel.h -rw-r--r-- 6.2 KB
mac80211.h -rw-r--r-- 232.0 KB
mac802154.h -rw-r--r-- 15.3 KB
mip6.h -rw-r--r-- 1.6 KB
mld.h -rw-r--r-- 2.8 KB
mpls.h -rw-r--r-- 932 bytes
mpls_iptunnel.h -rw-r--r-- 827 bytes
mrp.h -rw-r--r-- 3.0 KB
ncsi.h -rw-r--r-- 1.9 KB
ndisc.h -rw-r--r-- 13.8 KB
neighbour.h -rw-r--r-- 14.6 KB
net_namespace.h -rw-r--r-- 10.7 KB
net_ratelimit.h -rw-r--r-- 220 bytes
netevent.h -rw-r--r-- 973 bytes
netlabel.h -rw-r--r-- 20.7 KB
netlink.h -rw-r--r-- 40.4 KB
netprio_cgroup.h -rw-r--r-- 1.2 KB
netrom.h -rw-r--r-- 7.7 KB
nexthop.h -rw-r--r-- 865 bytes
nl802154.h -rw-r--r-- 12.1 KB
nsh.h -rw-r--r-- 12.3 KB
p8022.h -rw-r--r-- 447 bytes
ping.h -rw-r--r-- 3.4 KB
pkt_cls.h -rw-r--r-- 19.2 KB
pkt_sched.h -rw-r--r-- 4.1 KB
pptp.h -rw-r--r-- 557 bytes
protocol.h -rw-r--r-- 4.1 KB
psample.h -rw-r--r-- 821 bytes
psnap.h -rw-r--r-- 351 bytes
raw.h -rw-r--r-- 2.1 KB
rawv6.h -rw-r--r-- 854 bytes
red.h -rw-r--r-- 10.3 KB
regulatory.h -rw-r--r-- 10.9 KB
request_sock.h -rw-r--r-- 6.4 KB
rose.h -rw-r--r-- 7.6 KB
route.h -rw-r--r-- 10.0 KB
rsi_91x.h -rw-r--r-- 1.7 KB
rtnetlink.h -rw-r--r-- 6.1 KB
sch_generic.h -rw-r--r-- 25.7 KB
scm.h -rw-r--r-- 3.5 KB
secure_seq.h -rw-r--r-- 855 bytes
seg6.h -rw-r--r-- 1.7 KB
seg6_hmac.h -rw-r--r-- 1.7 KB
slhc_vj.h -rw-r--r-- 6.7 KB
smc.h -rw-r--r-- 440 bytes
snmp.h -rw-r--r-- 5.2 KB
sock.h -rw-r--r-- 68.1 KB
sock_reuseport.h -rw-r--r-- 863 bytes
stp.h -rw-r--r-- 383 bytes
strparser.h -rw-r--r-- 3.8 KB
switchdev.h -rw-r--r-- 6.5 KB
tcp.h -rw-r--r-- 62.3 KB
tcp_states.h -rw-r--r-- 1.4 KB
timewait_sock.h -rw-r--r-- 1.1 KB
tipc.h -rw-r--r-- 2.3 KB
tls.h -rw-r--r-- 9.1 KB
transp_v6.h -rw-r--r-- 1.9 KB
tso.h -rw-r--r-- 515 bytes
tun_proto.h -rw-r--r-- 988 bytes
udp.h -rw-r--r-- 12.8 KB
udp_tunnel.h -rw-r--r-- 5.1 KB
udplite.h -rw-r--r-- 3.8 KB
vsock_addr.h -rw-r--r-- 1.0 KB
vxlan.h -rw-r--r-- 10.4 KB
wext.h -rw-r--r-- 1.5 KB
wimax.h -rw-r--r-- 20.0 KB
x25.h -rw-r--r-- 9.4 KB
x25device.h -rw-r--r-- 387 bytes
xdp.h -rw-r--r-- 1.7 KB
xfrm.h -rw-r--r-- 54.9 KB

back to top