From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbzt6-0001hg-18 for qemu-devel@nongnu.org; Wed, 29 Jun 2011 14:53:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbzt4-00012C-9S for qemu-devel@nongnu.org; Wed, 29 Jun 2011 14:53:23 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:43933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbzt3-00011h-P5 for qemu-devel@nongnu.org; Wed, 29 Jun 2011 14:53:22 -0400 From: Peter Maydell Date: Wed, 29 Jun 2011 19:53:10 +0100 Message-Id: <1309373591-30380-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1309373591-30380-1-git-send-email-peter.maydell@linaro.org> References: <1309373591-30380-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 2/3] hw/omap_gpio.c: Don't complain about some writes to r/o registers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , =?UTF-8?q?Juha=20Riihim=C3=A4ki?= , patches@linaro.org Don't complain about some writes to r/o OMAP2 GPIO registers, because the kernel will do them anyway. Signed-off-by: Peter Maydell --- hw/omap_gpio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/omap_gpio.c b/hw/omap_gpio.c index 478f7d9..b53b13b 100644 --- a/hw/omap_gpio.c +++ b/hw/omap_gpio.c @@ -385,7 +385,7 @@ static void omap2_gpio_module_write(void *opaque, target_phys_addr_t addr, case 0x00: /* GPIO_REVISION */ case 0x14: /* GPIO_SYSSTATUS */ case 0x38: /* GPIO_DATAIN */ - OMAP_RO_REG(addr); + /* read-only, ignore quietly */ break; case 0x10: /* GPIO_SYSCONFIG */ @@ -531,7 +531,7 @@ static void omap2_gpio_module_writep(void *opaque, target_phys_addr_t addr, case 0x00: /* GPIO_REVISION */ case 0x14: /* GPIO_SYSSTATUS */ case 0x38: /* GPIO_DATAIN */ - OMAP_RO_REG(addr); + /* read-only, ignore quietly */ break; case 0x10: /* GPIO_SYSCONFIG */ -- 1.7.1