lkml.org 
[lkml]   [2005]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Christmas list for the kernel
Russell King wrote:
> On Wed, Nov 23, 2005 at 04:20:00PM +0100, Pierre Ossman wrote:
>
>> But if no hardware is connected to those devices, then where does the
>> driver route the setserial stuff?
>>
>
> setserial /dev/ttyS2 port 0x200 irq 5 autoconfig
>
> and you might then end up with another serial port detected. If
> /dev/ttyS2 and above do not exist, you can't do that. That would
> in turn effectively prevent folk with some serial cards using them
> with Linux without editing and rebuilding their kernel.
>
>

Ah. But why is this not done through module parameters? That would be
more consistent with how you specify resources for other drivers.

> As for the rest of the "setserial stuff" it gets recorded against
> the port and remembered for when the hardware turns up, which it
> may do if it's your PCMCIA modem card.
>
>

This could be a bit more questionable. Setting the initial state of
hardware is better done (IMHO) by reacting to some hotplug event. E.g.
fedora uses an 'install' line in modprobe.conf to restore mixer state
for sound cards.

Rgds
Pierre

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-23 16:42    [W:1.498 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site