On Mon, 9 Nov 2026 at 03:52, Hanyu <[email protected]> wrote: > > From: Hanyu <[email protected]> > > On raspi4b, SPI0's interrupt is connected only to the legacy interrupt > controller. Linux guests whose device trees use the GIC therefore > can't detect an SPI0 interrupt. > > This patch adds a two-output IRQ splitter to deliver SPI0's interrupt > to both the legacy controller and GIC SPI 118. This follows commit > fb3e0557a4cb ("hw/arm/bcm2838: Route I2C interrupts to GIC"). > > Testing > > Add these options to the QEMU invocation: > > -device m25p80,bus=spi,drive=flash0 \ > -blockdev node-name=flash0,driver=file,filename=flash.bin > > Before the change, probing fails and /proc/mtd contains no devices: > > spi-nor spi0.0: SPI transfer timed out > spi_master spi0: failed to transfer one message from queue > spi-nor: probe of spi0.0 failed with error -2 > > After the change, the flash is detected: > > spi-nor spi0.0: m25p80 (1024 Kbytes) > # cat /proc/mtd > dev: size erasesize name > mtd0: 00100000 00010000 "spi0.0" > > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3013 > Signed-off-by: Hanyu <[email protected]>
Thanks for fixing this; the patch looks good to me. Applied to target-arm.next, thanks. -- PMM
