[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 21/21] hw/gpio/imx_gpio: Don't clear input GPIO values upon reset
From: |
Bernhard Beschow |
Subject: |
[PATCH 21/21] hw/gpio/imx_gpio: Don't clear input GPIO values upon reset |
Date: |
Mon, 20 Jan 2025 21:37:48 +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 549a281ed7..25546221e0 100644
--- a/hw/gpio/imx_gpio.c
+++ b/hw/gpio/imx_gpio.c
@@ -298,7 +298,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.48.1
- [PATCH 11/21] hw/arm/fsl-imx8mp: Add I2C controllers, (continued)
- [PATCH 11/21] hw/arm/fsl-imx8mp: Add I2C controllers, Bernhard Beschow, 2025/01/20
- [PATCH 16/21] hw/arm/fsl-imx8mp: Add USB support, Bernhard Beschow, 2025/01/20
- [PATCH 17/21] hw/arm/fsl-imx8mp: Add boot ROM, Bernhard Beschow, 2025/01/20
- [PATCH 10/21] hw/arm/fsl-imx8mp: Add GPIO controllers, Bernhard Beschow, 2025/01/20
- [PATCH 14/21] hw/arm/fsl-imx8mp: Implement gneral purpose timers, Bernhard Beschow, 2025/01/20
- [PATCH 12/21] hw/arm/fsl-imx8mp: Add SPI controllers, Bernhard Beschow, 2025/01/20
- [PATCH 18/21] hw/arm/fsl-imx8mp: Add on-chip RAM, Bernhard Beschow, 2025/01/20
- [PATCH 19/21] hw/rtc: Add Ricoh RS5C372 RTC emulation, Bernhard Beschow, 2025/01/20
- [PATCH 21/21] hw/gpio/imx_gpio: Don't clear input GPIO values upon reset,
Bernhard Beschow <=
- [PATCH 20/21] hw/i2c: Import TCA6416 emulation from Xilinx, Bernhard Beschow, 2025/01/20