From patchwork Fri Apr 25 13:20:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 29076 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 698DB202E6 for ; Fri, 25 Apr 2014 13:23:18 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf21561501oag.2 for ; Fri, 25 Apr 2014 06:23:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=IMRd18Mi8nD4txAJG1tCZkV6zSu3F6raTbl4b+qCkN8=; b=Bh2/FRe5wOt1/QiuJ4DgqbMhXepPhXD3XJ21KOnNq3tK+I/68xqhoSo5VXkeVAKVIA VfnmWtHMPpPRgOocyrvI9nBoVfPRWMe9BrKRMGI1jX9u4eqGNiLm6Cg2SRE2OHpU3+NO 1MeLq8jWfRbv/zHUFEzz8w4jlH6L3c46CPeQFqgzqmjQOOBHh3OmUrGga5YyYGc+8QPw YNDva6KagGygB1yBQflkoSbDErOvYqhDj73CJ0hy+zZqQWXb7x/u4ZeZxtHH5ap5Zk3r GGlJJmeOXV2fYuTNdSBOoixL8llJYIi3BB4qwP2JvJVugPG1gpbL5KIFOU/yVPVuVa/6 BEag== X-Gm-Message-State: ALoCoQmvXZxN1sk9G8jfhrHiG6at3xIGSvOKllloF8QUnkQeQAnCcjV1biBSjRDZTK3YjEdteSBl X-Received: by 10.43.103.136 with SMTP id di8mr3908411icc.14.1398432197695; Fri, 25 Apr 2014 06:23:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.201 with SMTP id k67ls1594872qge.22.gmail; Fri, 25 Apr 2014 06:23:17 -0700 (PDT) X-Received: by 10.58.134.101 with SMTP id pj5mr298016veb.38.1398432197507; Fri, 25 Apr 2014 06:23:17 -0700 (PDT) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id lz6si1693904vcb.139.2014.04.25.06.23.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Apr 2014 06:23:17 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id ld13so4717459vcb.33 for ; Fri, 25 Apr 2014 06:23:17 -0700 (PDT) X-Received: by 10.58.38.40 with SMTP id d8mr44649vek.61.1398432197416; Fri, 25 Apr 2014 06:23:17 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp97383vcb; Fri, 25 Apr 2014 06:23:16 -0700 (PDT) X-Received: by 10.68.240.5 with SMTP id vw5mr7660517pbc.113.1398432196489; Fri, 25 Apr 2014 06:23:16 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wh4si4863405pbc.90.2014.04.25.06.23.15; Fri, 25 Apr 2014 06:23:15 -0700 (PDT) Received-SPF: none (google.com: linux-acpi-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753478AbaDYNXL (ORCPT + 8 others); Fri, 25 Apr 2014 09:23:11 -0400 Received: from mail-pb0-f51.google.com ([209.85.160.51]:33747 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753195AbaDYNXJ (ORCPT ); Fri, 25 Apr 2014 09:23:09 -0400 Received: by mail-pb0-f51.google.com with SMTP id uo5so3192425pbc.24 for ; Fri, 25 Apr 2014 06:23:08 -0700 (PDT) X-Received: by 10.68.201.97 with SMTP id jz1mr11451204pbc.26.1398432188681; Fri, 25 Apr 2014 06:23:08 -0700 (PDT) Received: from localhost ([218.17.215.175]) by mx.google.com with ESMTPSA id ba3sm149563pbb.10.2014.04.25.06.22.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Apr 2014 06:23:08 -0700 (PDT) From: Hanjun Guo To: linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org Cc: "Rafael J. Wysocki" , Catalin Marinas , Arnd Bergmann , Mark Brown , Grant Likely , Sudeep Holla , Olof Johansson , Mark Rutland , Rob Herring , Will Deacon , Charles.Garcia-Tobin@arm.com, linaro-acpi@lists.linaro.org, Hanjun Guo , Graeme Gregory Subject: [PATCH v3 part1 06/11] ARM64 / ACPI: Introduce lowlevel suspend function Date: Fri, 25 Apr 2014 21:20:12 +0800 Message-Id: <1398432017-8506-7-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398432017-8506-1-git-send-email-hanjun.guo@linaro.org> References: <1398432017-8506-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , acpi_wakeup_address is used on x86 as the address bios jumps into when machine wakes up from suspend. As arm64 does not have such a bios this mechanism will be provided by other means. But the define is still required inside the acpi core. Introduce a null stub for acpi_suspend_lowlevel as this is also required by core. This will be filled in when standards are defined for arm64 ACPI global power states. Signed-off-by: Graeme Gregory Signed-off-by: Hanjun Guo --- arch/arm64/include/asm/acpi.h | 4 ++++ drivers/acpi/plat/arm-core.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/arch/arm64/include/asm/acpi.h b/arch/arm64/include/asm/acpi.h index 3ac9dfb..60e3a72 100644 --- a/arch/arm64/include/asm/acpi.h +++ b/arch/arm64/include/asm/acpi.h @@ -85,6 +85,10 @@ static inline void acpi_disable_pci(void) */ #define cpu_physical_id(cpu) -1 +/* Low-level suspend routine. */ +extern int (*acpi_suspend_lowlevel)(void); +#define acpi_wakeup_address (0) + #endif /* CONFIG_ACPI */ #endif /*_ASM_ACPI_H*/ diff --git a/drivers/acpi/plat/arm-core.c b/drivers/acpi/plat/arm-core.c index e4846fd..aeea64e 100644 --- a/drivers/acpi/plat/arm-core.c +++ b/drivers/acpi/plat/arm-core.c @@ -129,3 +129,10 @@ static int __init parse_acpi(char *arg) return 0; } early_param("acpi", parse_acpi); + +/* + * acpi_suspend_lowlevel() - save kernel state and suspend. + * + * TBD when ARM/ARM64 starts to support suspend... + */ +int (*acpi_suspend_lowlevel)(void);