Received: from eggs.gnu.org ([2001:4830:134:3::10]:52276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c08dC-0004aH-Bg for qemu-devel@nongnu.org; Fri, 28 Oct 2016 10:59:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c08dA-0005Q8-PZ for qemu-devel@nongnu.org; Fri, 28 Oct 2016 10:59:42 -0400 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:47447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c08dA-0005K7-FY for qemu-devel@nongnu.org; Fri, 28 Oct 2016 10:59:40 -0400 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.84_2) (envelope-from ) id 1c08cv-0005jV-V1 for qemu-devel@nongnu.org; Fri, 28 Oct 2016 15:59:25 +0100 From: Peter Maydell Date: Fri, 28 Oct 2016 15:59:16 +0100 Message-Id: <1477666764-19403-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1477666764-19403-1-git-send-email-peter.maydell@linaro.org> References: <1477666764-19403-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 1/9] i.MX: Fix GPIO ISR register write List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Guenter Roeck Writing the ISR register is supposed to clear interrupt status bits, not to set them. This patch makes '-M sabrelite' work without devicetree changes (Linux kernel versions 3.18 to 4.7 with imx_v6_v7_defconfig and up to v4.8 with multi_v7_defconfig; mainline has different problems). Signed-off-by: Guenter Roeck Message-id: 1477361005-18646-1-git-send-email-linux@roeck-us.net Acked-by: Jean-Christophe Dubois Signed-off-by: Peter Maydell --- hw/gpio/imx_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/gpio/imx_gpio.c b/hw/gpio/imx_gpio.c index f3574aa..c36c394 100644 --- a/hw/gpio/imx_gpio.c +++ b/hw/gpio/imx_gpio.c @@ -237,7 +237,7 @@ static void imx_gpio_write(void *opaque, hwaddr offset, uint64_t value, break; case ISR_ADDR: - s->isr |= ~value; + s->isr &= ~value; imx_gpio_set_all_int_lines(s); break; -- 2.7.4