[PATCH v3 0/3] Connect STM32L4x5 USART devices to the EXTI

Inès Varhol posted 3 patches 4 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240707085927.122867-1-ines.varhol@telecom-paris.fr
Maintainers: Arnaud Minier <arnaud.minier@telecom-paris.fr>, "Inès Varhol" <ines.varhol@telecom-paris.fr>, Peter Maydell <peter.maydell@linaro.org>, Alistair Francis <alistair@alistair23.me>
include/hw/misc/stm32l4x5_exti.h |  4 ++--
hw/arm/stm32l4x5_soc.c           | 24 +++++++++++-------------
hw/misc/stm32l4x5_exti.c         | 13 +++++++++----
3 files changed, 22 insertions(+), 19 deletions(-)
[PATCH v3 0/3] Connect STM32L4x5 USART devices to the EXTI
Posted by Inès Varhol 4 months, 2 weeks ago
STM32L4x5 EXTI was handling only configurable interrupts
(such as those coming from STM32L4x5 SYSCFG which was the
only device connected to the EXTI).
This patch adds support for direct line interrupts and
connects the existing STM32L4x5 USART devices to the EXTI.
The patch also corrects the handling of configurable line
interrupts in the EXTI.

Changes from v2 (2nd commit):
- The 2nd commit was split, part of the changes went in
another patch correcting EXTI configurable interrupts.
Stayed in the commit only changes relevant to direct interrupts.

Changes from v1 (2nd commit):
- add STM32L4x5 EXTI status fields `irq_levels` to track
configurable irq levels and do edge detection
- use `qemu_set_irq` instead of qemu_irq_raise/lower

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

Inès Varhol (3):
  hw/misc: In STM32L4x5 EXTI, consolidate 2 constants
  hw/misc: In STM32L4x5 EXTI, handle direct interrupts
  hw/arm: In STM32L4x5 SOC, connect USART devices to EXTI

 include/hw/misc/stm32l4x5_exti.h |  4 ++--
 hw/arm/stm32l4x5_soc.c           | 24 +++++++++++-------------
 hw/misc/stm32l4x5_exti.c         | 13 +++++++++----
 3 files changed, 22 insertions(+), 19 deletions(-)

-- 
2.43.2
Re: [PATCH v3 0/3] Connect STM32L4x5 USART devices to the EXTI
Posted by Peter Maydell 4 months, 2 weeks ago
On Sun, 7 Jul 2024 at 09:59, Inès Varhol <ines.varhol@telecom-paris.fr> wrote:
>
> STM32L4x5 EXTI was handling only configurable interrupts
> (such as those coming from STM32L4x5 SYSCFG which was the
> only device connected to the EXTI).
> This patch adds support for direct line interrupts and
> connects the existing STM32L4x5 USART devices to the EXTI.
> The patch also corrects the handling of configurable line
> interrupts in the EXTI.
>
> Changes from v2 (2nd commit):
> - The 2nd commit was split, part of the changes went in
> another patch correcting EXTI configurable interrupts.
> Stayed in the commit only changes relevant to direct interrupts.
>
> Changes from v1 (2nd commit):
> - add STM32L4x5 EXTI status fields `irq_levels` to track
> configurable irq levels and do edge detection
> - use `qemu_set_irq` instead of qemu_irq_raise/lower
>
> Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>



Applied to target-arm.next, thanks.

-- PMM