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: 102655 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8F19EB6F64 for ; Thu, 30 Jun 2011 05:45:42 +1000 (EST) Received: from localhost ([::1]:51169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qc0he-0006kq-PT for incoming@patchwork.ozlabs.org; Wed, 29 Jun 2011 15:45:38 -0400 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 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 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: Riku Voipio , =?UTF-8?q?Juha=20Riihim=C3=A4ki?= , patches@linaro.org Subject: [Qemu-devel] [PATCH 2/3] hw/omap_gpio.c: Don't complain about some writes to r/o registers X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.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 */