[Skiboot] [PATCH v3 3/9] Device-Tree(DT) entry for per-chip HOMER offset
benh at au1.ibm.com
Sat Aug 15 22:25:24 AEST 2015
On Sat, 2015-08-15 at 12:33 +1000, Daniel Axtens wrote:
> By a generic driver I mean a driver that uses an of_device_id table
> be automatically bound to devices in the device tree. I've found 
> be a very useful introduction.
> If you can implement the kernel side as this, I think it will
> dramatically simplify things: it will automatically do detection for
> you, without you having to write code to to that in the kernel. It
> require you to add a compatible property in Skiboot, and may require
> some changes to the structure, but I think it will be worth it.
> Restructuring things this way might also allow you to remove some of
> static limits in your kernel side patches, which will help with
Right, you probably still need to create a platform device (like we do
for other things in arch/powerpc/platforms/powernv/opal.c) but yes,
that will give you automatic loading of the module by udev etc.. and
generally speaking is the right way to do this.
More information about the Skiboot