linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: mode_option or mode parameter (was: i810fb module parameter 'mode_option' inconsistent with other framebuffer modules)
@ 2008-02-05 12:40 krzysztof.h1
  2008-02-05 13:39 ` Alain Kalker
  0 siblings, 1 reply; 11+ messages in thread
From: krzysztof.h1 @ 2008-02-05 12:40 UTC (permalink / raw)
  To: Alain Kalker, krzysztof.h1, jsimmons, adaplas, linux-fbdev-devel,
	463129

Alain Kalker napisa³:

> >From Documentation/fb/modedb.txt:
> ---
> When a frame buffer device receives a video= option it doesn't know, it
> should consider that to be a video mode option. If no frame buffer
> device is specified in a video= option, fbmem considers that to be a
> global video mode option.
> 
> Valid mode specifiers (mode_option argument):
> ...
> 
> >From this I believe that "mode_option" is the standard way, It also
> indicates that the parameter name itself is optional, but I am not sure
> if there is an overall Linux standard for indicating optional parameter
> names.
> 

If the mode_option is the correct one please email Andrew Morton to remove the patch I made for i810fb.
I will fix drivers which use the "mode" option.

> 
> P.S.: Krzysztof, maybe it would be a good idea to update fbmode.txt
> too, as there are now many more framebuffer drivers which support video
> mode naming.
> 
> 

I'll update it with every driver I reworked.

Regards,
Krzysztof


Pogoda na najblizsze dni.
Sprawdz >>> http://link.interia.pl/f1ce1


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: mode_option or mode parameter (was: i810fb module parameter 'mode_option' inconsistent with other framebuffer modules)
@ 2008-02-07  7:21 krzysztof.h1
  0 siblings, 0 replies; 11+ messages in thread
From: krzysztof.h1 @ 2008-02-07  7:21 UTC (permalink / raw)
  To: Alain Kalker, linux-fbdev-devel, Randy Dunlap, krzysztof.h1,
	jsimmons, adaplas

Alain Kalker napisa³(a):
>
> I would like to propose instead to make the "mode& / mode_option"
> parameter name optional for all drivers where possible. This will
> greatly simplify framebuffer driver loading by the boot scripts, which
> currently cannot easily identify drivers needing either parameter name.
>

Just for conirmation:

so the current solution should be to add "mode_option" for drivers using
ModeDB and for all drivers to be able to accept resolution without any
parameter name?

Regards,
Krzysztof



----------------------------------------------------------------------
Wyjatkowe pioro Andrzeja Mleczki! 
Licytuj! >>> http://link.interia.pl/f1cf2


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: mode_option or mode parameter (was: i810fb module parameter 'mode_option' inconsistent with other framebuffer modules)
@ 2008-02-06  7:15 krzysztof.h1
  2008-02-06 16:47 ` Alain Kalker
  0 siblings, 1 reply; 11+ messages in thread
From: krzysztof.h1 @ 2008-02-06  7:15 UTC (permalink / raw)
  To: Randy Dunlap, linux-fbdev-devel, krzysztof.h1, jsimmons, adaplas

Randy Dunlap napisa³(a):
> On 05 Feb 2008 08:08:10 +0100 krzysztof.h1@poczta.fm wrote:
> 
> > Hi,
> > 
> > Few days ago, a bug was reported that the i810fb uses "mode_option"
> parameters while other framebuffers uses the "mode" parameter to set
> initial mode. It was spotted later that some drivers uses "mode_option",
> some uses "mode" and some does use none.
> > 
> > I want to ask what is a correct way. I can rework at least some of the
> drivers to a standard way, but I don't know what the standard is.
> 
> Hi,
> Hopefully one of the fbdev driver developers will know for sure.
> 
> I would (do) say that "mode_option" is being redundant.  Yes, it's
> an option, but we don't usually name options (in other parts of the
> kernel) with an _option suffix.  Sure, the variable could be called
> >mode_option>, but the userspace name should just be "mode".  IMHO.
> 

I and Alain Kalker (who originally filled the bug report) decided to proceed
with mode_option parameter because it is stated in documentation, fb driver
skeleton and more drivers then the mode option. It seems that the mode
option is used in newer drivers (drivers added later).

We want to preserve what older fbdev developers decided some time ago. 
Personaly, I am not sure one way is much better then the other one. 
The problem is that it is not one way.

The first step is to fix the mess with different option names, so to add
the mode_option parameter to drivers which do not support it or support the
mode parameter.

> Please keep Documentation/fb/modedb.txt updated if you make any
> relevant changes.
> 

Yes, of course.

Regards,
Krzysztof


----------------------------------------------------------------------
Wyjatkowe pioro Andrzeja Mleczki! 
Licytuj! >>> http://link.interia.pl/f1cf2


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: mode_option or mode parameter (was: i810fb module parameter 'mode_option' inconsistent with other framebuffer modules)
@ 2008-02-05  7:08 krzysztof.h1
  2008-02-05 11:42 ` Alain Kalker
  2008-02-05 22:03 ` Randy Dunlap
  0 siblings, 2 replies; 11+ messages in thread
From: krzysztof.h1 @ 2008-02-05  7:08 UTC (permalink / raw)
  To: krzysztof.h1, jsimmons, adaplas; +Cc: linux-fbdev-devel

Hi,

Few days ago, a bug was reported that the i810fb uses "mode_option" parameters while other framebuffers uses the "mode" parameter to set initial mode. It was spotted later that some drivers uses "mode_option", some uses "mode" and some does use none.

I want to ask what is a correct way. I can rework at least some of the drivers to a standard way, but I don't know what the standard is.

Kind regards,
Krzysztof


Pogoda na najblizsze dni.
Sprawdz >>> http://link.interia.pl/f1ce1


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-02-07  7:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05 12:40 mode_option or mode parameter (was: i810fb module parameter 'mode_option' inconsistent with other framebuffer modules) krzysztof.h1
2008-02-05 13:39 ` Alain Kalker
  -- strict thread matches above, loose matches on Subject: below --
2008-02-07  7:21 krzysztof.h1
2008-02-06  7:15 krzysztof.h1
2008-02-06 16:47 ` Alain Kalker
2008-02-06 16:53   ` Alain Kalker
2008-02-05  7:08 krzysztof.h1
2008-02-05 11:42 ` Alain Kalker
2008-02-05 12:09   ` Alain Kalker
2008-02-05 12:25     ` Alain Kalker
2008-02-05 22:03 ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).