From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752291AbbCYNke (ORCPT ); Wed, 25 Mar 2015 09:40:34 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:27022 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751558AbbCYNka (ORCPT ); Wed, 25 Mar 2015 09:40:30 -0400 Message-ID: <5512B84D.4090705@huawei.com> Date: Wed, 25 Mar 2015 21:29:49 +0800 From: Hanjun Guo User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Lorenzo Pieralisi , , , CC: Mark Rutland , Catalin Marinas , Will Deacon , Hanjun Guo , Sudeep Holla Subject: Re: [PATCH 2/5] ARM64: kernel: psci: factor out probe function References: <1427219940-27201-1-git-send-email-lorenzo.pieralisi@arm.com> <1427219940-27201-3-git-send-email-lorenzo.pieralisi@arm.com> In-Reply-To: <1427219940-27201-3-git-send-email-lorenzo.pieralisi@arm.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.17.188] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.5512B859.009B,ss=1,re=0.001,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 5f1ac256e15662062d0d4db52dec5d7b Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2015/3/25 1:58, Lorenzo Pieralisi wrote: > PSCI v0.2+ versions provide a specific PSCI call (PSCI_VERSION) to > detect the PSCI version at run-time. Current PSCI v0.2 init code > carries out the version probing in the PSCI 0.2 DT init function, > but the version probing does not depend on DT so it can be factored out > in order to make it available to other boot mechanisms (ie ACPI) to > reuse. The psci_probe() probing function can be easily extended > to add detection and initialization of PSCI functions defined in > PSCI versions >0.2. > > Signed-off-by: Lorenzo Pieralisi > Cc: Hanjun Guo > Cc: Sudeep Holla > Cc: Mark Rutland > --- This cleanup looks pretty fine to me, Reviewed-by: Hanjun Guo Thanks Hanjun