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: <hidden>
Date: 2008-02-06 07:37:29

Randy Dunlap napisa³(a):
On 05 Feb 2008 08:08:10 +0100 krzysztof.h1@poczta.fm wrote:
quoted
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.
quoted
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
quoted
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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help