From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hanjun Guo Subject: Re: [PATCH 3/5] ARM64: kernel: psci: let ACPI probe PSCI version Date: Wed, 25 Mar 2015 21:35:22 +0800 Message-ID: <5512B99A.3090206@huawei.com> References: <1427219940-27201-1-git-send-email-lorenzo.pieralisi@arm.com> <1427219940-27201-4-git-send-email-lorenzo.pieralisi@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from szxga01-in.huawei.com ([58.251.152.64]:25628 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751128AbbCYNfk (ORCPT ); Wed, 25 Mar 2015 09:35:40 -0400 In-Reply-To: <1427219940-27201-4-git-send-email-lorenzo.pieralisi@arm.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Lorenzo Pieralisi , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Hanjun Guo , Sudeep Holla , Mark Rutland , Will Deacon , Catalin Marinas On 2015/3/25 1:58, Lorenzo Pieralisi wrote: > PSCI v0.2+ allows the kernel to probe the PSCI firmware version. > > This patch replaces the default initialization of PSCI v0.2+ > functions with code that allows probing PSCI firmware version > and initializes PSCI functions accordingly. > > Signed-off-by: Lorenzo Pieralisi > Cc: Hanjun Guo > Cc: Sudeep Holla > Cc: Mark Rutland > --- Reviewed-by: Hanjun Guo Thanks Hanjun > arch/arm64/kernel/psci.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/arch/arm64/kernel/psci.c b/arch/arm64/kernel/psci.c > index 2caac44..ea18cb5 100644 > --- a/arch/arm64/kernel/psci.c > +++ b/arch/arm64/kernel/psci.c > @@ -439,9 +439,7 @@ int __init psci_acpi_init(void) > else > invoke_psci_fn = __invoke_psci_fn_smc; > > - psci_0_2_set_functions(); > - > - return 0; > + return psci_probe(); > } > > #ifdef CONFIG_SMP