From patchwork Fri Jan 10 22:52:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: al.stone@linaro.org X-Patchwork-Id: 3468571 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BC702C02DC for ; Fri, 10 Jan 2014 23:00:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 088F12013D for ; Fri, 10 Jan 2014 23:00:55 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1A41220131 for ; Fri, 10 Jan 2014 23:00:54 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1l4L-0007BP-RW; Fri, 10 Jan 2014 23:00:49 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1l4J-00065I-ER; Fri, 10 Jan 2014 23:00:47 +0000 Received: from mail-ie0-f171.google.com ([209.85.223.171]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1l4H-00064J-1C for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2014 23:00:45 +0000 Received: by mail-ie0-f171.google.com with SMTP id to1so1781311ieb.2 for ; Fri, 10 Jan 2014 15:00:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hSPo4pU1Rv9lnyrxUGAdRjd3a1tpsO36wd6pJXjqshE=; b=JDWfv/zAohkP60C6zkjSANU2Ff+Iccov2QrF6yetzwvd2XDbLm5UL3R6HrnxFWjuXg 7eym8/EC1wsbGrOYbQ6Gk50q7uDSWTVhHlpYMOYAh8+QekDfwy+HO041DomiXNqnyQ9j XN1CXDiP8+LOUwtD/nUpy9riA8BRX063m9ikYqyZ9jrFy2c7RoWXYyZnLJVEYpPWGAq1 VPnCC0VsJLxlpj3DWDsduUi4MkMjHJZ9WqShuzMbw8Gc4rbkzRC0OFjfCnQ/V360HUt3 u1J9moIjfE2mJQS5bKttRvHcUrhPL3B4ZtUP+c/4ERLMzoexHcN0E6B1noj3NNv2DVox 28dA== X-Gm-Message-State: ALoCoQkmhb1rVcEdd9p+GKNtSr2d85YK0aemkrDKhQynYZH1moUgP9kZo/pk3QAy6YE4q+55qobL X-Received: by 10.50.120.105 with SMTP id lb9mr6527921igb.22.1389394354367; Fri, 10 Jan 2014 14:52:34 -0800 (PST) Received: from fidelio.ahs3.com (74-93-232-46-Colorado.hfc.comcastbusiness.net. [74.93.232.46]) by mx.google.com with ESMTPSA id a1sm4967226igo.0.2014.01.10.14.52.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2014 14:52:33 -0800 (PST) From: al.stone@linaro.org To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 2/6] ACPI: bus master reload not supported in reduced HW mode Date: Fri, 10 Jan 2014 15:52:16 -0700 Message-Id: <1389394340-2680-3-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1389394340-2680-1-git-send-email-al.stone@linaro.org> References: <1389394340-2680-1-git-send-email-al.stone@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140110_180045_121174_794131A2 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) Cc: patches@linaro.org, Al Stone , linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD,SUSPICIOUS_RECIPS,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Al Stone Do not save and restore bus master reload registers in suspend/resume when in reduced HW mode; according to the spec, no such registers should exist Signed-off-by: Al Stone --- drivers/acpi/processor_idle.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 597cdab..eac984a 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -229,12 +229,14 @@ static struct syscore_ops acpi_processor_syscore_ops = { void acpi_processor_syscore_init(void) { - register_syscore_ops(&acpi_processor_syscore_ops); + if (!acpi_gbl_reduced_hardware) + register_syscore_ops(&acpi_processor_syscore_ops); } void acpi_processor_syscore_exit(void) { - unregister_syscore_ops(&acpi_processor_syscore_ops); + if (!acpi_gbl_reduced_hardware) + unregister_syscore_ops(&acpi_processor_syscore_ops); } #endif /* CONFIG_PM_SLEEP */