On 2 March 2016 at 05:27, Jean-Christophe Dubois <j...@tribudubois.net> wrote: > Signed-off-by: Jean-Christophe Dubois <j...@tribudubois.net> > --- > > + > +static void imx_spi_reset(DeviceState *dev) > +{ > + IMXSPIState *s = IMX_SPI(dev); > + int i; > + > + DPRINTF("\n"); > + > + memset(s->regs, 0, sizeof(s->regs)); > + > + s->regs[ECSPI_STATREG] = 0x00000003; > + > + imx_spi_rxfifo_reset(s); > + imx_spi_txfifo_reset(s); > + > + imx_spi_update_irq(s); > + > + s->burst_length = 0; > + > + for (i = 0; i < 4; i++) { > + qemu_set_irq(s->cs_lines[i], 0); > + }
Calling qemu_set_irq() from a reset function is generally a bad idea. > +} Otherwise Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM