Code used wrong vartiable to check flags, irq does not change so only first IRQ is checked
I think this assert will be hit when the allocation doesn't fit as sc->sc_spi_end isn't a MSI/MSI-X irq.
Overcome by events: fixed by r317428
Are the irq -> end_irq changes still relevant? They appear so.
Yeah, overlooked end_irq part, reopening
Sync patch to the latest HEAD version