From patchwork Wed Jun 29 18:53:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 2374 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 4404023F08 for ; Wed, 29 Jun 2011 18:53:19 +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 0D129A181EB for ; Wed, 29 Jun 2011 18:53:18 +0000 (UTC) Received: by mail-qw0-f52.google.com with SMTP id 8so1080376qwb.11 for ; Wed, 29 Jun 2011 11:53:18 -0700 (PDT) Received: by 10.229.63.144 with SMTP id b16mr893082qci.80.1309373598794; Wed, 29 Jun 2011 11:53:18 -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 r7cs50092qcf; Wed, 29 Jun 2011 11:53:18 -0700 (PDT) Received: by 10.68.5.233 with SMTP id v9mr1392339pbv.215.1309373598051; Wed, 29 Jun 2011 11:53:18 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk [81.2.115.146]) by mx.google.com with ESMTPS id r12si7997282wff.38.2011.06.29.11.53.15 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Jun 2011 11:53:16 -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 1Qbzst-0007uV-Uj; Wed, 29 Jun 2011 19:53:11 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Riku Voipio , =?UTF-8?q?Juha=20Riihim=C3=A4ki?= Subject: [PATCH 2/3] hw/omap_gpio.c: Don't complain about some writes to r/o registers Date: Wed, 29 Jun 2011 19:53:10 +0100 Message-Id: <1309373591-30380-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1309373591-30380-1-git-send-email-peter.maydell@linaro.org> References: <1309373591-30380-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 */