[PATCH] Platform bus support

Kay Sievers kay.sievers at vrfy.org
Tue Sep 27 08:43:22 PDT 2005


On Tue, Sep 27, 2005 at 04:32:36PM +0100, Richard Hughes wrote:
> 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?

Usually setting CONFIG_SERIAL_8250_NR_UARTS=4 is safe.
CONFIG_SERIAL_8250_ACPI may make a difference, never tried it.

Kay


More information about the hal mailing list