On Tuesday 04 December 2007, Benjamin Herrenschmidt wrote: > On Tue, 2007-12-04 at 20:35 +0100, Arnd Bergmann wrote: > > > > 1. If another platform gets added that uses the same firmware feature, > > it > > will automatically do the right thing. > > Yes but is it something that we want to happen ? That is, do we want > code somewhere in a platform/foo dir to run when using platform/bar > because they happen to share a feature ?
It should be decided case-by-case of course. My assumption was that in those places where we currently check the firmware feature, that is actually the right thing to do. For the lv1 specific device drivers (vuart, sound, graphics, ...), my feeling is that they should really check for lv1, not for ps3, because the check for lv1 is only needed in order to make sure that you can run the hcall that probes for the actual device. For some of the iseries checks, it would be more logical to test the platform instead of the firmware feature IMHO, but I don't see a significant reason to change that. Arnd <>< _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev