[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/14] hw/gpio/imx_gpio: Don't clear input GPIO values upon reset
From: |
Bernhard Beschow |
Subject: |
[PATCH 06/14] hw/gpio/imx_gpio: Don't clear input GPIO values upon reset |
Date: |
Wed, 8 Jan 2025 10:25:30 +0100 |
Input GPIO values such as a present SD card may get notified before the GPIO
controller itself gets reset. Claring the input values thus loses data. Assuming
that input GPIO events are only fired when the state changes, the input values
shouldn't be reset.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/gpio/imx_gpio.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/gpio/imx_gpio.c b/hw/gpio/imx_gpio.c
index 898f80f8c8..67c47a7280 100644
--- a/hw/gpio/imx_gpio.c
+++ b/hw/gpio/imx_gpio.c
@@ -302,7 +302,6 @@ static void imx_gpio_reset(DeviceState *dev)
s->dr = 0;
s->gdir = 0;
- s->psr = 0;
s->icr = 0;
s->imr = 0;
s->isr = 0;
--
2.47.1
- Re: [PATCH 04/14] hw/core: Introduce TYPE_SHARED_IRQ, (continued)
- [PATCH 02/14] hw/char/imx_serial: Fix reset value of UFCR register, Bernhard Beschow, 2025/01/08
- [PATCH 01/14] hw/sd/sdhci: Set SDHC_NIS_DMA bit when appropriate, Bernhard Beschow, 2025/01/08
- [PATCH 13/14] hw/misc/imx6_src: Convert DPRINTF() to trace events, Bernhard Beschow, 2025/01/08
- [PATCH 03/14] hw/char/imx_serial: Update all state before restarting ageing timer, Bernhard Beschow, 2025/01/08
- [PATCH 06/14] hw/gpio/imx_gpio: Don't clear input GPIO values upon reset,
Bernhard Beschow <=
- [PATCH 07/14] hw/sd/sd: Remove legacy sd_set_cb() in favor of GPIOs, Bernhard Beschow, 2025/01/08
- [PATCH 05/14] hw/pci-host/designware: Expose MSI IRQ, Bernhard Beschow, 2025/01/08
- [PATCH 10/14] hw/timer/imx_gpt: Remove unused define, Bernhard Beschow, 2025/01/08
- [PATCH 14/14] hw/gpio/imx_gpio: Turn DPRINTF() into trace events, Bernhard Beschow, 2025/01/08
- [PATCH 08/14] hw/sd/sd: Allow for inverting polarities of presence and write-protect GPIOs, Bernhard Beschow, 2025/01/08