[PATCH] Platform bus support
Richard Hughes
hughsient at gmail.com
Tue Sep 27 08:18:27 PDT 2005
On Tue, 2005-09-27 at 17:08 +0200, Kay Sievers wrote:
> On Tue, Sep 27, 2005 at 03:57:59PM +0100, Richard Hughes wrote:
> > On Tue, 2005-09-27 at 16:40 +0200, Pierre Ossman wrote:
> > > Richard Hughes wrote:
> > > >On Tue, 2005-09-27 at 15:45 +0200, Pierre Ossman wrote:
> > > >>Richard Hughes wrote:
> > > >>
> > > >>>Could you resync against cvs HEAD please:
> > > >
> > > >Brilliant thanks.
> > > >
> > > >I see my PS2 devices, and the vesa device (should we see this?) but I
> > > >also see about 30 new devices that are my ttyS* devices - I'm sure these
> > > >shouldn't be showing up.
> > > >
> > > >I've attached my lshal before and after your patch.
> > >
> > > Since the kernel decides to export these devices then I would say that
> > > it's correct for hal to pick them up. If we cannot determine if they're
> > > actually there or not then we'll just have to trust the kernel.
> >
> > But they are not devices! They are just virtual tty's. You will need to
> > filter these in HAL so they do not add a new device for each one.
>
> Note the "S"! ttyS*'s are not "virtual tty's" these are serial ports.
> Modern boxes like my laptop shows only 4 of them, which are perfectly
> fine to appear in HAL, I think.
My 2.2Gig Toshiba Laptop (not old) shows 31 of these:
udi =
'/org/freedesktop/Hal/devices/platform_serial8250_serial_platform_31'
info.udi =
'/org/freedesktop/Hal/devices/platform_serial8250_serial_platform_31'
(string)
linux.device_file = '/dev/ttyS31' (string)
linux.subsystem = 'tty' (string)
linux.hotplug_type = 2 (0x2) (int)
info.product = 'Platform Device (serial8250)' (string)
serial.type = 'platform' (string)
serial.port = 31 (0x1f) (int)
serial.device = '/dev/ttyS31' (string)
serial.physical_device =
'/org/freedesktop/Hal/devices/platform_serial8250' (string)
info.capabilities = {'serial'} (string list)
info.category = 'serial' (string)
info.parent = '/org/freedesktop/Hal/devices/platform_serial8250'
(string)
linux.sysfs_path = '/sys/class/tty/ttyS31' (string)
And I can assure you, I haven't got 31 different serial ports!
What is the cause of this? Kay? Any ideas?
Richard.
More information about the hal
mailing list