Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932540AbcKPOCw (ORCPT ); Wed, 16 Nov 2016 09:02:52 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:45956 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932119AbcKPOCu (ORCPT ); Wed, 16 Nov 2016 09:02:50 -0500 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org A73F2611CB Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=akdwived@codeaurora.org Subject: Re: [PATCH v2 1/3] remoteproc: qcom: Encapsulate pvt data structure for q6v56 hexagon. To: Rob Herring References: <1478268057-11847-1-git-send-email-akdwived@codeaurora.org> <1478268057-11847-2-git-send-email-akdwived@codeaurora.org> <20161110203013.fphvzd4df3zvjdfi@rob-hp-laptop> Cc: bjorn.andersson@linaro.org, Ohad Ben-Cohen , Mark Rutland , "open list:REMOTE PROCESSOR (REMOTEPROC) SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list From: Avaneesh Kumar Dwivedi Message-ID: Date: Wed, 16 Nov 2016 19:32:44 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161110203013.fphvzd4df3zvjdfi@rob-hp-laptop> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1385 Lines: 35 On 11/11/2016 2:00 AM, Rob Herring wrote: > On Fri, Nov 04, 2016 at 07:30:54PM +0530, Avaneesh Kumar Dwivedi wrote: >> Encapsulate resources specific to each version of hexagon chip to >> device node to avoid conditional check for manipulation of those >> resources in driver code. >> >> Signed-off-by: Avaneesh Kumar Dwivedi >> --- >> .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + >> drivers/remoteproc/qcom_q6v5_pil.c | 137 ++++++++++++++++++--- >> 2 files changed, 120 insertions(+), 18 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt b/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt >> index 57cb49e..cbc165c 100644 >> --- a/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt >> +++ b/Documentation/devicetree/bindings/remoteproc/qcom,q6v5.txt >> @@ -8,6 +8,7 @@ on the Qualcomm Hexagon core. >> Value type: >> Definition: must be one of: >> "qcom,q6v5-pil" >> + "qcom,q6v56-pil" > Perhaps some explanation in the commit message about what these magic > numbers mean? "v56" represent class of hexagon chip, which again is differentiated based on version number. Two different MSM SOC may use same class of hexagon chip. example is as below. msm8974 q6v5 version 5.0.0 msm8916 q6v5 version 5.1.1 > > Rob