From patchwork Fri Jul 8 16:56:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 2614 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 513FE23F41 for ; Fri, 8 Jul 2011 16:56:29 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id 2196CA18505 for ; Fri, 8 Jul 2011 16:56:29 +0000 (UTC) Received: by mail-qw0-f52.google.com with SMTP id 8so1467991qwb.11 for ; Fri, 08 Jul 2011 09:56:29 -0700 (PDT) Received: by 10.229.1.140 with SMTP id 12mr1763906qcf.118.1310144187336; Fri, 08 Jul 2011 09:56:27 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.48.135 with SMTP id r7cs141287qcf; Fri, 8 Jul 2011 09:56:27 -0700 (PDT) Received: by 10.216.241.132 with SMTP id g4mr2290593wer.9.1310144185593; Fri, 08 Jul 2011 09:56:25 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk [81.2.115.146]) by mx.google.com with ESMTPS id n37si690274weq.86.2011.07.08.09.56.24 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jul 2011 09:56:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1QfELl-0005xs-Tx; Fri, 08 Jul 2011 17:56:21 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Riku Voipio , =?UTF-8?q?Juha=20Riihim=C3=A4ki?= , andrzej zaborowski Subject: [PATCH v2 2/4] hw/omap_gpio.c: Don't complain about some writes to r/o registers Date: Fri, 8 Jul 2011 17:56:19 +0100 Message-Id: <1310144181-22901-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1310144181-22901-1-git-send-email-peter.maydell@linaro.org> References: <1310144181-22901-1-git-send-email-peter.maydell@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 */