On Tue, 2007-07-24 at 08:04 +1000, Benjamin Herrenschmidt wrote: > On Mon, 2007-07-23 at 19:13 +0800, Chen Gong wrote: > > This patch adds a new member 'name' for irq host's name to > > structure irq_host and modifies the definition of the > > function irq_alloc_host(). The assignment to the > > irq host's name is also added to irq_alloc_host(). > > I would instead prefer adding a irq_name callback to host, which would > return a per-irq name. In some cases, they could return the OF path to > the host for example.
The pity is, for the 75% [1] of irq_hosts that have a device_node, they will all have to implement the name callback, because they all store the of node differently. Which makes me think (again) that we should have an optional device_node pointer in irq_host. I know you said you wanted the irq stuff to be OF agnostic, but the reality is most of the implementations do have an OF node. And all of the newer irq_host implementations do, with the exception of PS3 and celleb - which are special. cheers [1] Yes I counted :) -- Michael Ellerman OzLabs, IBM Australia Development Lab wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183) We do not inherit the earth from our ancestors, we borrow it from our children. - S.M.A.R.T Person
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev