[PATCH] mx3fb: Fix parameter to sdc_init_panel

Guennadi Liakhovetski g.liakhovetski at gmx.de
Wed Feb 16 08:47:48 EST 2011


On Mon, 14 Feb 2011, Alexander Stein wrote:

> On Monday 14 February 2011, 08:57:04 Guennadi Liakhovetski wrote:
> > On Mon, 14 Feb 2011, Alexander Stein wrote:
> > > On Thursday 10 February 2011, 14:01:17 Alexander Stein wrote:
> > > > On Thursday 10 February 2011, 13:48:23 Guennadi Liakhovetski wrote:
> > > > > > I don't know which display you used, but I guess your right_margin
> > > > > > (and lower_margin) needs to be adjusted.
> > > > > 
> > > > > Ok, agree. But then you need to adjust all current users and have
> > > > > them tested... Otherwise, of course, you can just adjust your
> > > > > platform panel data to work with the current calculations, even
> > > > > though in principle your patch seems to be doing the right thing
> > > > > (tm), according to the manual. But if applied as is without fixing
> > > > > all the users, it can very well break them...
> > > > 
> > > > Ok, I've just seen there are some model defines in mx3fb.c which would
> > > > also be affected.
> > > > I'll try to find all mx3fb users and fix their videomodes and repost a
> > > > new patch.
> > > 
> > > Uh, this seems next to impossible for me to handle it my own. I checked
> > > some users of the mx3fb but I cant say which ones will be affected and
> > > which ones not (e.g. without any hsync/vsync, on data enable).
> > > I've not idea how to fix it then.
> > 
> > Well, you can, of course, adjust parameters for your platform to be able
> > to run with this incorrect parameter definition...
> 
> This is just an ugly work-around. Depending on the settings you may even get 
> an overflow resulting in a not-working display at all.

Sure, I know, that this is a work-around. But I don't see options apart 
from

1. fix the driver and maybe a couple of platforms, that we have at hand 
and hope, that others will fix theirs or shout loud enough, when they 
discover, that their platforms are broken

2. fix the driver and all users and try to get as many of them as we can 
to test our fixes

3. leave the driver and work around the bug in all new platforms

Choose your poison;)

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/



More information about the linux-arm-kernel mailing list