qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 21/21] hw/gpio/imx_gpio: Don't clear input GPIO values upon r


From: Gustavo Romero
Subject: Re: [PATCH 21/21] hw/gpio/imx_gpio: Don't clear input GPIO values upon reset
Date: Tue, 28 Jan 2025 11:33:27 -0300
User-agent: Mozilla Thunderbird

Hi,

On 1/20/25 17:37, Bernhard Beschow wrote:
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

                                ^- nit: Clearing


Cheers,
Gustavo

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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]