[PATCH v3] imx_serial: set wake bit when we receive a data byte

2023-06-15 Thread Martin Kaiser
ilippe Mathieu-Daudé Signed-off-by: Martin Kaiser --- v3: - fix some spelling mistakes in the commit message - add Philippe's Reviewed-by v2: - support interrupts from wake - clean up the commit message hw/char/imx_serial.c | 5 - include/hw/char/imx_serial.h | 1 + 2 files ch

[PATCH v2] imx_serial: set wake bit when we receive a data byte

2023-06-15 Thread Martin Kaiser
;s not set for break events). It seems that wake is cleared by the kernel driver, the hardware does not have to clear it automatically after data was read. The wake bit can be configured as an interrupt source. Support this mechanism as well. Co-developed-by: Philippe Mathieu-Daudé Signed-off-by: M

Re: [PATCH] imx_serial: set wake bit when we receive a data byte

2023-06-15 Thread Martin Kaiser
Hi Philippe, thanks for reviewing my patch. Philippe Mathieu-Daudé (phi...@linaro.org) wrote: > Shouldn't we mask this bit for interruptions now? yes, we should support interrupts from the wake bit. I'll add your snippet and send a v2. Thanks, Martin > -- >8 -- > diff --git a/include/hw/char/

[PATCH] imx_serial: set wake bit when we receive a data byte

2023-06-08 Thread Martin Kaiser
ak events). It seems that wake is cleared by the kernel driver, the hardware does not have to clear it automatically after data was read. Signed-off-by: Martin Kaiser --- hw/char/imx_serial.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/char/imx_serial.c b/hw/char/imx_seria

Re: [PATCH] i.MX: add an emulation for RNGC

2020-01-08 Thread Martin Kaiser
Hi Peter, thanks for reviewing my patch. I just sent a v2 where I fixed the issues that you found. Thus wrote Peter Maydell (peter.mayd...@linaro.org): > > +#include "qemu/main-loop.h" > Do you really need main-loop.h ? Without main-loop.h, I get compiler errors about missing prototypes for q

[PATCH v2] i.MX: add an emulation for RNGC

2020-01-08 Thread Martin Kaiser
Add an emulation for the RNGC random number generator and the compatible RNGB variant. These peripherals are included (at least) in imx25 and imx35 chipsets. The emulation supports the initial self test, reseeding the prng and reading random numbers. Signed-off-by: Martin Kaiser --- changes in

[PATCH] i.MX: add an emulation for RNGC

2019-12-27 Thread Martin Kaiser
Add an emulation for the RNGC random number generator and the compatible RNGB variant. These peripherals are included (at least) in imx25 and imx35 chipsets. The emulation supports the initial self test, reseeding the prng and reading random numbers. Signed-off-by: Martin Kaiser --- hw/arm/fsl