Received: by 10.192.165.148 with SMTP id m20csp1204174imm; Thu, 10 May 2018 07:12:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoD9fw4AfqLgaDtfchBTGmNe9MlizsSyJ40yY9LQq1114OyogF0S1Qqk0oOBzR/XnL6QZyx X-Received: by 2002:a17:902:2f84:: with SMTP id t4-v6mr1635771plb.24.1525961575669; Thu, 10 May 2018 07:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525961575; cv=none; d=google.com; s=arc-20160816; b=CGkJzvZQYKkY7EV08PCdkkQmbQvJln9L93UPc1hdIeJ7THawfJuXQQ4RvdaA+LYh22 nMGJo/YoPoKjhfFXVv+XKHkk2o/411lkxA/x1YIdBkkKm/+ACYJ9xWZRNwZeE/L6Zt+b rw7qMRwML0jV4XPNv+MyE61jzTicnHd1EWSmuEOkFQz1Xwv0WCRKzyvhe57kALtU/C/y 3khlg/Qkq2c+h4GdZKCdGUd9wEIkOKTR+uINJFmVVERChLo6GVb9njG5bg3gEIqZlLQE 7IkfeVXOxsV9RqCuL/cjK0un9XPUBmQSZKDt234ZEbl5OeE7gyXzIH+7dAQuD7wGGJfL iXyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:cc :arc-authentication-results; bh=9g8ucX+b4kAtirUKy72Cj7dZBF4Nz9gaUymyIbB8GSo=; b=oCQ4tpEHShAa7OvE72799GRaUtAtzb65m3R+J9eOwGt6ngP4LeOG+ZsQgsrP/WOOCO DNPupCDCUi5x8JIjUAFAS40JubRM6u04b4/2Qr/vfBGnMMpLd2TC2MP5LXSH1vvQS76n 8SYDqyy8WcIHYAfI26ZnIMnxGGtD+CmK0XOiHhMfxB/Frqzw0+UxhnNiUoHiCLU5MvRW EBhfdOMamR8WtzdoTg2nayC1xV8AwtFC0u9jvOkwCYZJQIlVm77fy5I4hrpOtOHuElb1 Q0EFqbDCFQzePuD6J+4kk2b47ahcpOShuBFK6hHGFnKNTL1qJ6O4Fc2WoA1/8TBBvBrq SWSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23-v6si833886pfi.353.2018.05.10.07.12.34; Thu, 10 May 2018 07:12:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965267AbeEJOMZ (ORCPT + 99 others); Thu, 10 May 2018 10:12:25 -0400 Received: from foss.arm.com ([217.140.101.70]:56408 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757182AbeEJOMX (ORCPT ); Thu, 10 May 2018 10:12:23 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4E37E15B2; Thu, 10 May 2018 07:12:23 -0700 (PDT) Received: from [10.1.210.28] (e107155-lin.cambridge.arm.com [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CAB013F23C; Thu, 10 May 2018 07:12:19 -0700 (PDT) Cc: Sudeep Holla , rajanv@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jolly Shah Subject: Re: [PATCH v6 04/11] firmware: xilinx: Add query data API To: Jolly Shah , ard.biesheuvel@linaro.org, mingo@kernel.org, gregkh@linuxfoundation.org, matt@codeblueprint.co.uk, hkallweit1@gmail.com, keescook@chromium.org, dmitry.torokhov@gmail.com, mturquette@baylibre.com, sboyd@codeaurora.org, michal.simek@xilinx.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-clk@vger.kernel.org References: <1523389127-14243-1-git-send-email-jollys@xilinx.com> <1523389127-14243-5-git-send-email-jollys@xilinx.com> From: Sudeep Holla Organization: ARM Message-ID: <85f8f8c5-a177-dad8-e095-a9dd1c513e8d@arm.com> Date: Thu, 10 May 2018 15:12:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1523389127-14243-5-git-send-email-jollys@xilinx.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/18 20:38, Jolly Shah wrote: > From: Rajan Vaja > > Add ZynqMP firmware query data API to query platform > specific information(clocks, pins) from firmware. > > Signed-off-by: Rajan Vaja > Signed-off-by: Jolly Shah > --- > drivers/firmware/xilinx/zynqmp.c | 14 ++++++++++++++ > include/linux/firmware/xlnx-zynqmp.h | 20 ++++++++++++++++++++ > 2 files changed, 34 insertions(+) > > diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c > index 44b43fa..ef09c44 100644 > --- a/drivers/firmware/xilinx/zynqmp.c > +++ b/drivers/firmware/xilinx/zynqmp.c > @@ -258,9 +258,23 @@ static int zynqmp_pm_ioctl(u32 node_id, u32 ioctl_id, u32 arg1, u32 arg2, > arg1, arg2, out); > } > > +/** > + * zynqmp_pm_query_data() - Get query data from firmware > + * @qdata: Variable to the zynqmp_pm_query_data structure > + * @out: Returned output value > + * > + * Return: Returns status, either success or error+reason > + */ > +static int zynqmp_pm_query_data(struct zynqmp_pm_query_data qdata, u32 *out) > +{ > + return zynqmp_pm_invoke_fn(PM_QUERY_DATA, qdata.qid, qdata.arg1, > + qdata.arg2, qdata.arg3, out); > +} > + > static const struct zynqmp_eemi_ops eemi_ops = { > .get_api_version = zynqmp_pm_get_api_version, > .ioctl = zynqmp_pm_ioctl, > + .query_data = zynqmp_pm_query_data, Can you give more insight into this ? How will be this used ? How this aligns with data we get from DT ? I am just trying to understand how is this information split between this API and DT for example. -- Regards, Sudeep