From patchwork Wed Jan 8 00:46:48 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: 3450931 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 9C22BC02DC for ; Wed, 8 Jan 2014 00:47:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E40F420122 for ; Wed, 8 Jan 2014 00:47:44 +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 190D320121 for ; Wed, 8 Jan 2014 00:47:44 +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 1W0hJ6-0001fI-83; Wed, 08 Jan 2014 00:47:40 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W0hJ3-0008W7-Sk; Wed, 08 Jan 2014 00:47:37 +0000 Received: from mail-ig0-f181.google.com ([209.85.213.181]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W0hIy-0008U5-3n for linux-arm-kernel@lists.infradead.org; Wed, 08 Jan 2014 00:47:32 +0000 Received: by mail-ig0-f181.google.com with SMTP id k19so3226112igc.2 for ; Tue, 07 Jan 2014 16:47:05 -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=HW/+PxULAb8DB3pZJFs4Tx3+Jr4NPG0zlYBniP4yMe0GXZF9EeA4uyS8lQtzJnFR+l 8d8ESjx07kS5yBAsD6OmreFN52MXN1wK9aZLySSRZ3oDRqu7dDITvcK64tddEwSCpp6p O3FwCliyoEwBUR/ImIHo2n7YVna8nhm8ctK4mgSSqLoG7q/uao7vszeZNrUXhJ1HlTbM HfDq0Ho5IhQkmMY7MYJpqtVF1SUiY5FnQkGXT3JTyiprrOnUTnUIXLncTqiuyWuxkN9U BQKbXwy+Qns5cA0t+VFwXcrkGU5IJD+0tvp6Kwqxp8Ta5Y0VeSBFmbiHQ2WMoeq0quYz zqnQ== X-Gm-Message-State: ALoCoQk6f6DTbhPVMQ90tByrmEbQbtnaUtoMVycE9DjohXgk6SOJpVy+tiITKL/D2lZGVrupM4tH X-Received: by 10.50.78.229 with SMTP id e5mr28440581igx.49.1389142025500; Tue, 07 Jan 2014 16:47:05 -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 kt2sm6361770igb.1.2014.01.07.16.47.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Jan 2014 16:47:04 -0800 (PST) From: al.stone@linaro.org To: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 2/5] ACPI: bus master reload not supported in reduced HW mode Date: Tue, 7 Jan 2014 17:46:48 -0700 Message-Id: <1389142011-27356-3-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1389142011-27356-1-git-send-email-al.stone@linaro.org> References: <1389142011-27356-1-git-send-email-al.stone@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140107_194732_209359_CE8DF6A1 X-CRM114-Status: GOOD ( 10.09 ) 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.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, SUSPICIOUS_RECIPS, UNPARSEABLE_RELAY autolearn=no 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 */