From patchwork Thu Oct 1 23:58:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 51118 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n91Nx4iC024291 for ; Thu, 1 Oct 2009 23:59:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756642AbZJAX7k (ORCPT ); Thu, 1 Oct 2009 19:59:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756631AbZJAX7k (ORCPT ); Thu, 1 Oct 2009 19:59:40 -0400 Received: from mail-pz0-f177.google.com ([209.85.222.177]:58920 "EHLO mail-pz0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756612AbZJAX7k (ORCPT ); Thu, 1 Oct 2009 19:59:40 -0400 Received: by mail-pz0-f177.google.com with SMTP id 7so574597pzk.33 for ; Thu, 01 Oct 2009 16:59:44 -0700 (PDT) Received: by 10.115.100.38 with SMTP id c38mr3062552wam.110.1254441584260; Thu, 01 Oct 2009 16:59:44 -0700 (PDT) Received: from localhost ([216.254.16.51]) by mx.google.com with ESMTPS id 21sm304584pzk.7.2009.10.01.16.59.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Oct 2009 16:59:43 -0700 (PDT) From: Kevin Hilman To: linux-omap@vger.kernel.org Cc: Aaro Koskinen Subject: [PATCH 26/28] OMAP3: PM: Fix INTC context save/restore Date: Thu, 1 Oct 2009 16:58:56 -0700 Message-Id: <1254441538-9257-27-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.6.4.3 In-Reply-To: <1254441538-9257-26-git-send-email-khilman@deeprootsystems.com> References: <1254441538-9257-1-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-2-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-3-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-4-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-5-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-6-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-7-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-8-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-9-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-10-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-11-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-12-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-13-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-14-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-15-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-16-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-17-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-18-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-19-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-20-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-21-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-22-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-23-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-24-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-25-git-send-email-khilman@deeprootsystems.com> <1254441538-9257-26-git-send-email-khilman@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 76f532d..9ca0449 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c @@ -233,7 +233,7 @@ void omap3_intc_save_context(void) intc_bank_read_reg(bank, INTC_THRESHOLD); for (i = 0; i < INTCPS_NR_IRQS; i++) intc_context[ind].ilr[i] = - intc_bank_read_reg(bank, (0x100 + 0x4*ind)); + intc_bank_read_reg(bank, (0x100 + 0x4*i)); for (i = 0; i < INTCPS_NR_MIR_REGS; i++) intc_context[ind].mir[i] = intc_bank_read_reg(&irq_banks[0], INTC_MIR0 + @@ -259,7 +259,7 @@ void omap3_intc_restore_context(void) bank, INTC_THRESHOLD); for (i = 0; i < INTCPS_NR_IRQS; i++) intc_bank_write_reg(intc_context[ind].ilr[i], - bank, (0x100 + 0x4*ind)); + bank, (0x100 + 0x4*i)); for (i = 0; i < INTCPS_NR_MIR_REGS; i++) intc_bank_write_reg(intc_context[ind].mir[i], &irq_banks[0], INTC_MIR0 + (0x20 * i));