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

Inès Varhol posted 2 patches 2 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240629110800.539969-1-ines.varhol@telecom-paris.fr
Maintainers: Arnaud Minier <arnaud.minier@telecom-paris.fr>, "Inès Varhol" <ines.varhol@telecom-paris.fr>, Alistair Francis <alistair@alistair23.me>, Peter Maydell <peter.maydell@linaro.org>, Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
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 2 months, 1 week 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 2 months, 1 week 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