[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for-4.5 7/8] xen/irq: Handle multiple action per IRQ
On 03/18/2014 03:39 PM, Stefano Stabellini wrote: > On Tue, 18 Mar 2014, Julien Grall wrote: >> Hi Stefano, >> >> On 03/18/2014 03:01 PM, Stefano Stabellini wrote: >> >>>> I understand the point that people can badly use multiple action in the >>>> future, but is it a good reason to make the code more difficult to >>>> understand? >>> >>> Can't we simply register all the irq handlers at boot time, regardless >>> of whether they are currently used? >>> >> >> This code is doing this actually. You need to know if the IRQ is >> represented multiple times in the "interrupts" list or not. > > Oh, that's right. > > You could rely on request_dt_irq() being able to handle failures > gracefully to make the code easier to read. > Overall I don't think the code is too bad. request_dt_irq doesn't sound the right place to handle it. How will you differentiate an IRQ already registered by another driver and an IRQ registered by the driver itself? IHMO, this hack is worst and could lead issue with the developper because of misconception of the error code. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |