[PATCH 0/2] hw/misc: Fix STM32L4x5 EXTI interrupts

Inès Varhol posted 2 patches 6 months ago
include/hw/misc/stm32l4x5_exti.h    |  2 ++
hw/misc/stm32l4x5_exti.c            | 28 +++++++++++++---------------
tests/qtest/stm32l4x5_exti-test.c   |  8 ++++++++
tests/qtest/stm32l4x5_syscfg-test.c |  2 +-
4 files changed, 24 insertions(+), 16 deletions(-)
[PATCH 0/2] hw/misc: Fix STM32L4x5 EXTI interrupts
Posted by Inès Varhol 6 months ago
STM32L4x5 EXTI was incorrectly expecting alternating interrupts.
This patch adds a new field to track IRQ levels to actually
*detect* edges.
It also corrects existing QTests which were modifying the IRQ lines'
levels.

Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>

Inès Varhol (2):
  hw/misc: In STM32L4x5 EXTI, correct configurable interrupts
  tests/qtest: Ensure STM32L4x5 EXTI state is correct at the end of
    QTests

 include/hw/misc/stm32l4x5_exti.h    |  2 ++
 hw/misc/stm32l4x5_exti.c            | 28 +++++++++++++---------------
 tests/qtest/stm32l4x5_exti-test.c   |  8 ++++++++
 tests/qtest/stm32l4x5_syscfg-test.c |  2 +-
 4 files changed, 24 insertions(+), 16 deletions(-)

-- 
2.43.2
Re: [PATCH 0/2] hw/misc: Fix STM32L4x5 EXTI interrupts
Posted by Peter Maydell 5 months, 4 weeks ago
On Sat, 29 Jun 2024 at 12:08, Inès Varhol <ines.varhol@telecom-paris.fr> wrote:
>
> STM32L4x5 EXTI was incorrectly expecting alternating interrupts.
> This patch adds a new field to track IRQ levels to actually
> *detect* edges.
> It also corrects existing QTests which were modifying the IRQ lines'
> levels.
>
> Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>
>



Applied to target-arm.next, thanks.

-- PMM