Re: RFC: Platform data for onboard USB assets
From: Alan Cox
Date: Wed Mar 23 2011 - 05:38:49 EST
> > Does it make sense however to add platform data for generic probed
> > devices ? I don't think so.
> Generally speaking, this wouldn't make sense. but this is a case where
> a generically probed device happens to be used in a very specific
> hardware design with its own quirks. in that very particular case then
> it certainly makes some sense.
If it's a very specific hardware design it can do its own very specific
internal private kernel patch, or little config app in user space. There
isn't a valid reason to inflict that complexity on the other 99.999999%
> actual device registration. So, while this is true that there is a
> possibility for misuse, in practice this is rather unlikely to go very
> far without being noticed, and therefore this argument alone is rather
> weak in support of a significant world order change.
You mean it'll get missed and years later will get compiled into some
other device and a joker with a custom USB widget will add the ids to his
widget and declare it an exploit ?
The other thing being overlooked is that for board specific horrors you
can still put them in udev quite easily if your udev happens to know how
to parse some kind of firmware provided table. That might even be bits of
your device tree.
The kernel simply shouldn't get involved in machine specific namespace
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/