|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 2/2] xen/arm: consolidate make_timer_node and make_timer_domU_node
Hi Volodymyr, On 01/08/2019 15:07, Volodymyr Babchuk wrote: Hi Julien, Julien Grall writes:Hi, On 01/08/2019 14:49, Volodymyr Babchuk wrote:Viktor Mitin writes:Functions make_timer_node and make_timer_domU_node are quite similar. So it is better to consolidate them to avoid discrepancy. The main difference between the functions is the timer interrupts used. Keep the domU version for the compatible as it is simpler. Mean do not copy platform's 'compatible' property into hwdom device tree, instead set either arm,armv7-timer or arm,armv8-timer, depending on the platform type.It is hard to parse the last sentence. What about "Keep the domU version for the compatible as it is simpler: do not copy platform's 'compatible' property into hwdom device tree, instead set either arm,armv7-timer or arm,armv8-timer, depending on the platform type." ? I don't really see the problem with the current code... This is similar to when we use a structure but not all the field in certain circumstance (see dt_device_match for instance). So I would not force the contributor to do it. In this case we also can declare and use intrs[] in the same way. There is no guarantee the index in irq will match intrs[...]. So you need to keep them hardcoded in the latter case. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |