Re: Platform device id

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <hmh@...>
Cc: <linux-kernel@...>, <khali@...>, <gregkh@...>, <dmitry.torokhov@...>
Date: Friday, September 7, 2007 - 5:41 pm

> > For that matter, a *driver* should never create its own device node(s)

I don't follow.  If it's host-specific, then it's easy enough to
have a host-specific routine creating those platform devices.
A different host wouldn't call that routine.

Embedded Linux platforms do that *ALL* the time.  ARM keys on a
board ID provided early in boot (e.g. by U-Boot).  PowerPC uses
a device tree, which ISTR evolved from the OpenBoot as first used
on SPARC.  Worst comes to worst, the kernel command line can say
which board is involved, and thus which setup code to run.

(Also, note that "platform", "host", and "board" are ambiguous.
In some contexts each is synonymous; in others, not.  I avoid
using "host" except in the protocol sense.  Usually "board" is
pretty specific -- this cpu, those peripherals -- although it
gets messy when the system is really a board stack, or when the
CPU may be socketed or be in a customizable FPGA etc.)



See above ... most embedded systems aren't x86, so lack of PNP is
less of an issue than plain old legacy system designs -- designed
in ways that complicate or prevent probe/discovery schemes, which
gets to be a mess (like the one preceding PNP with DOS/x86/ISA).

Less clear cases include orphaned drivers, especially ones for
hardware that's on its way out or already obsolete.  Most folk
don't want to touch those, for fear of getting stuck to them.  :)

- Dave

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Platform device id, Jean Delvare, (Fri Sep 7, 9:35 am)
Re: Platform device id, Greg KH, (Sat Sep 8, 9:30 am)
[PATCH] Make platform_device.id an int, Jean Delvare, (Sun Sep 9, 6:54 am)
Re: Platform device id, Dmitry Torokhov, (Fri Sep 7, 10:58 am)
Re: Platform device id, Henrique de Moraes Holschuh..., (Fri Sep 7, 4:56 pm)
Re: Platform device id, Jean Delvare, (Sat Sep 8, 4:40 am)
Re: Platform device id, Henrique de Moraes Holschuh..., (Mon Sep 10, 6:45 pm)
Re: Platform device id, David Brownell, (Fri Sep 7, 12:41 pm)
Re: Platform device id, Henrique de Moraes Holschuh..., (Fri Sep 7, 5:00 pm)
Re: Platform device id, David Brownell, (Fri Sep 7, 5:41 pm)
Re: Platform device id, Henrique de Moraes Holschuh..., (Fri Sep 7, 6:04 pm)
Re: Platform device id, David Brownell, (Fri Sep 7, 8:18 pm)
Re: Platform device id, Henrique de Moraes Holschuh..., (Fri Sep 7, 11:50 pm)
Re: Platform device id, Jean Delvare, (Sat Sep 8, 4:55 am)
Re: Platform device id, Henrique de Moraes Holschuh..., (Mon Sep 10, 6:52 pm)
Re: Platform device id, Jean Delvare, (Tue Sep 11, 3:43 am)
Re: Platform device id, Henrique de Moraes Holschuh..., (Tue Sep 11, 9:44 am)
Re: Platform device id, Jean Delvare, (Tue Sep 11, 10:05 am)
Re: Platform device id, Jean Delvare, (Fri Sep 7, 12:36 pm)