Thread (3 messages) 3 messages, 2 authors, 2008-02-06

Re: mode_option or mode parameter (was: i810fb module parameter 'mode_option' inconsistent with other framebuffer modules)

From: Alain Kalker <hidden>
Date: 2008-02-06 16:47:13

On Wed, 2008-02-06 at 08:15 +0100, krzysztof.h1@poczta.fm wrote:
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.
This was indeed the intention of my bug report, but I have come to
realize that the 'mode_option' name currently makes it very easy to
distinguish between drivers which already use the ModeDB mechanism and
those that don't. One can usie a tool like 'modinfo' to list module
parameters instead of having to grep the kernel source for a function
like 'fb_find_mode'. Maybe in future when all drivers have been
harmonized, the 'mode_option' name can be changed once and for all.

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.

Regards,

Alain

-------------------------------------------------------------------------
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help