Re: [Xen-devel] [PATCH v6 6/6] xen: arm: consolidate mmio and irq mapping to dom0

2015-07-06 Thread Julien Grall
Hi Ian, On 03/07/15 16:56, Ian Campbell wrote: > The code in the callbacks for dt_for_each_irq_map and > dt_for_each_range is very similar to the code in handle_device for > each non-pci device. > > In fact the only major difference is that the irq callback needs to > call irq_set_spi_type in the

[Xen-devel] [PATCH v6 6/6] xen: arm: consolidate mmio and irq mapping to dom0

2015-07-03 Thread Ian Campbell
The code in the callbacks for dt_for_each_irq_map and dt_for_each_range is very similar to the code in handle_device for each non-pci device. In fact the only major difference is that the irq callback needs to call irq_set_spi_type in the PCI case. Refactor into a map_dt_irq_to_domain callback whi