Re: [Qemu-devel] [PATCH 1/2] char: i.MX: Simplify imx_update()

2018-03-19 Thread Peter Maydell
On 15 March 2018 at 19:11, Andrey Smirnov wrote: > Code of imx_update() is slightly confusing since the "flags" variable > doesn't really corespond to anything in real hardware and server as a > kitchensink accumulating events normally reported via USR1 and USR2 > registers. > > Change the code to

[Qemu-devel] [PATCH 1/2] char: i.MX: Simplify imx_update()

2018-03-15 Thread Andrey Smirnov
Code of imx_update() is slightly confusing since the "flags" variable doesn't really corespond to anything in real hardware and server as a kitchensink accumulating events normally reported via USR1 and USR2 registers. Change the code to explicitly evaluate state of interrupts reported via USR1 an