Revision 2b6c53b1504865728a6dfad3e720918a2f89f3a5 authored by Jon Medhurst (Tixy) on 20 August 2014, 12:41:04 UTC, committed by Tomi Valkeinen on 26 August 2014, 09:50:27 UTC
If the device-tree specifies a max-memory-bandwidth property then the
CLCD driver uses that to calculate the bits-per-pixel supported,
however, this calculation is faulty for two reasons.

1. It doesn't ensure that the result is a sane value, i.e. a power of 2
   and <= 32 as the rest of the code assumes.

2. It uses the displayed resolution and calculates the average bandwidth
   across the whole frame. It should instead calculate the peak
   bandwidth based on the pixel clock.

This patch fixes both the above.

Signed-off-by: Jon Medhurst <tixy@linaro.org>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
1 parent 754d561
History
File Mode Size
appletalk
arcnet
bonding
caif
can
cris
dsa
ethernet
fddi
hamradio
hippi
hyperv
ieee802154
irda
phy
plip
ppp
slip
team
usb
vmxnet3
wan
wimax
wireless
xen-netback
Kconfig -rw-r--r-- 11.8 KB
LICENSE.SRC -rw-r--r-- 891 bytes
Makefile -rw-r--r-- 1.8 KB
Space.c -rw-r--r-- 4.1 KB
dummy.c -rw-r--r-- 5.0 KB
eql.c -rw-r--r-- 14.7 KB
ifb.c -rw-r--r-- 7.4 KB
loopback.c -rw-r--r-- 5.6 KB
macvlan.c -rw-r--r-- 31.3 KB
macvtap.c -rw-r--r-- 29.3 KB
mdio.c -rw-r--r-- 11.9 KB
mii.c -rw-r--r-- 12.3 KB
netconsole.c -rw-r--r-- 21.5 KB
nlmon.c -rw-r--r-- 3.9 KB
ntb_netdev.c -rw-r--r-- 9.9 KB
rionet.c -rw-r--r-- 15.7 KB
sb1000.c -rw-r--r-- 31.5 KB
sungem_phy.c -rw-r--r-- 28.6 KB
tun.c -rw-r--r-- 55.6 KB
veth.c -rw-r--r-- 11.3 KB
virtio_net.c -rw-r--r-- 50.1 KB
vxlan.c -rw-r--r-- 72.4 KB
xen-netfront.c -rw-r--r-- 59.0 KB

back to top