[PATCH] Platform bus support

Richard Hughes hughsient at gmail.com
Tue Sep 27 08:32:36 PDT 2005


On Tue, 2005-09-27 at 17:24 +0200, Pierre Ossman wrote:
> Richard Hughes wrote:
> 
> >My 2.2Gig Toshiba Laptop (not old) shows 31 of these:
> >
> >And I can assure you, I haven't got 31 different serial ports!
> >
> >What is the cause of this? Kay? Any ideas?
> >
> >  
> >
> 
> I'm guessing CONFIG_SERIAL_8250_NR_UARTS. The 8250 driver seems to
> allocate as many ports as that no matter how many physical ports are
> actually found.

Bang on.

[root at localhost hal]# egrep -ir
"CONFIG_SERIAL_8250_NR_UARTS" /usr/src/kernels/2.6.12-1.1456_FC4-i686/.config
CONFIG_SERIAL_8250_NR_UARTS=32

This is a kernel oddity I guess. I thought this all went out with the
MAKEDEV stuff.

In my opinion, HAL has to hide the kernel funnies. Is there any way to
test if the 8250-derived serial port is actually existing and add this
logic to HAL? It's madness to add 32 devices that don't actually exist.

Richard.

p.s. is the fact I'm not running a bleeding edge kernel anything to do
with this?



More information about the hal mailing list