Re: [PATCH v2] hw/char/cmsdk-apb-uart: Fix rx interrupt handling

2020-11-17 Thread Tadej Pecar
On 17. 11. 20 17:38, Peter Maydell wrote: > On Mon, 16 Nov 2020 at 19:58, Tadej Pečar wrote: >> >> Previously, the RX interrupt got missed if: >> - the character backend provided next character before >>the RX IRQ Handler managed to clear the currently served interrupt. >> - the character back

Re: [PATCH v2] hw/char/cmsdk-apb-uart: Fix rx interrupt handling

2020-11-17 Thread Peter Maydell
On Mon, 16 Nov 2020 at 19:58, Tadej Pečar wrote: > > Previously, the RX interrupt got missed if: > - the character backend provided next character before >the RX IRQ Handler managed to clear the currently served interrupt. > - the character backend provided next character while the RX interrup

[PATCH v2] hw/char/cmsdk-apb-uart: Fix rx interrupt handling

2020-11-16 Thread Tadej Pečar
Previously, the RX interrupt got missed if: - the character backend provided next character before the RX IRQ Handler managed to clear the currently served interrupt. - the character backend provided next character while the RX interrupt was disabled. Enabling the interrupt did not trigger the