Re: [PATCHv3 01/19] [HACK] of: dev_node has struct device pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Stephen Warren <swarren@xxxxxxxxxxxxx> wrote @ Fri, 1 Nov 2013 22:45:19 +0100:

> On 11/01/2013 03:59 AM, Hiroshi Doyu wrote:
> ...
> > One idea is that, rather than inserting a hook(function) per
> > subsystems in driver core, if we invent a new /special section/ which
> > collects all hooks in sequence like initcalls, the subsystem just
> > would declare a hook function for that special section. All hooks in
> > that section can be called from driver core iterately. Then we
> > wouldn't touch driver core code at all, once we insert a func to call
> > hooks repeatedly. Looks simpler than tweaking bus notifier.
> 
> That sounds like a lot of effort to avoid adding a simple function call
> to the core's probe path.

True.

Can be implemented/revisited later if needed after we once have a
simple function call, of_iommu_attach() in drvier core.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux