Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4344950pxb; Tue, 2 Mar 2021 12:41:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAPmB+feDoKZBMIUOwh5Dcqe+LHPBTMg7u+NXCStr+GxCs1B6OYyba/8ryy+jCxikd0+Zx X-Received: by 2002:a17:906:543:: with SMTP id k3mr20186769eja.139.1614717680408; Tue, 02 Mar 2021 12:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614717680; cv=none; d=google.com; s=arc-20160816; b=ZzpL29uZdCBEzZwA17dpbFU3z5pk0n6FAcpX9sEe4oCIXjPxY9QVfnJzP3gAN0ELtb rlpONP5AwTFLkpeQZ1EoY+6VsctPZzl21EwOcJlP3YKnEslGvUqiuJ3E6skvdJTZR7vY N8joFIj7mI3+YvnYWAydB10WqZ6ar1UoO8LjxyOvPVzVVa/P8M4hsjBepDUgL68HAhWp 7AmTR2J5leeA7KsJDmD88bKm/fcIzFYsdN/tL2FZn3eLguwtJ7gfh52wom5gIop9dV0r PSGdS09MrpsLGDZB/Zutywg0fHjGABcFgF5YHvuKrwh+yv2i16adytOvVxeQRLP7HyVE S3hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9Yp6IMdjr+fqwidy7ap2X/QWUwpISs2GQo/1YVRp7Ac=; b=Gii1oTqrgUguT1Ky0yzulBnPcjUgJguh7voru1HtRcvnGow9bBmyGf6OTnGr9hwsMj TcsYxPom1KSiD5zRMEATwI/Mi/hCwGSeiKFiFDnY56tbA/c7u9An7Y4/5Yw8Tqs2ehy0 FKRwGwM3ydxKwvXGYZq+PvZMTE3y4g2Xe+ebxZJwaF5yfh+kcRlHWEPxP39M/jmf55Ca IVHTymL5AZoU14UCq7mVp1s2IBiKPcbQSLcL5A31M85yQwM8EHtpXpCFQMAxe82RtMA/ v4R68mEN3VZXv3zRbKgR8EO4WLww7HVg7O1Tjiju4SfReiuA4tYayUMk1jLC5gQy37ZX cHXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=qAkKQwpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y43si10351815ede.375.2021.03.02.12.40.57; Tue, 02 Mar 2021 12:41:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=qAkKQwpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1381776AbhCBIck (ORCPT + 99 others); Tue, 2 Mar 2021 03:32:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376891AbhCBIRM (ORCPT ); Tue, 2 Mar 2021 03:17:12 -0500 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1EDFC06178B for ; Tue, 2 Mar 2021 00:09:59 -0800 (PST) Received: by mail-ot1-x32c.google.com with SMTP id g8so15557094otk.4 for ; Tue, 02 Mar 2021 00:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nigauri-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9Yp6IMdjr+fqwidy7ap2X/QWUwpISs2GQo/1YVRp7Ac=; b=qAkKQwplIRSYPFSBTkFqpPss5lNeOKxBF1YZUQSp7kYRXZUqWrVQsFn12dHZ+LogaK Mh6A+iegnW9TEbkFcua6807by2HnlA6kjS5zv37AiSb3lBibMdSfCTGRZhE/+lJgpyF3 RUu0x8vhBF61bb1z4Dwh+hQ9zJplN9iQsrI6V3j8fI0JHMtQ0y0ulvjjAme22e8/p0AD y8ka3wOHtS/9jpqITKNEQM76IymEaSgsgCNVHbgWwRpoCadfJ2zONKNgnkJ1xYV+dJmH jBiZcEHBgQTauvhMo4xDyjUeFnNSRIYz9mgChPParMuLUa687M2RMGb6c1OzlMABG9YM 20pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9Yp6IMdjr+fqwidy7ap2X/QWUwpISs2GQo/1YVRp7Ac=; b=CfrMNxFP0hZtdnqrgVm7PERn19hoEsXbqryoQ49OBOpRjCRquRwe7vuLtJXaztjJk6 EEF7oLf557jKLsHS1vhH7QM/th/h6bVc3TYHQ5gqltc3mzO+cQhBiohtI/wXUhFjMZ1t IPlj05z61Xj4CXL1E0bVyk/MhE9pY7a6oo5i83vBcH75/6RKc5UWCRXMxHFHsLHQ3Umf G/Su72a7D+aADJIV4omRdoaEgsNw3TkWXMFpFREynwLLcTB/pB0Ne/5GHNV05Hf06Fb+ rz/Tj9Oo+cuS2DGtmZQbP52zwuyb+DFAZZ+angjWkcH3Cz6ba3ZNjx2Lh4eWHmiQATNr aXlw== X-Gm-Message-State: AOAM530P6XujbS7u2sMMK4y+L3+xnLqD/O7mjQEHVZWHvGCK5PwaHLce XKnG3mcebBANIOzXc//vD1UOCspTx8bD+xtzq0v/ X-Received: by 2002:a9d:63ce:: with SMTP id e14mr16281721otl.347.1614672598987; Tue, 02 Mar 2021 00:09:58 -0800 (PST) MIME-Version: 1.0 References: <1613131643-60062-1-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> <1613131643-60062-2-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> In-Reply-To: From: Nobuhiro Iwamatsu Date: Tue, 2 Mar 2021 17:09:33 +0900 Message-ID: Subject: Re: [PATCH v3 1/3] firmware: xilinx: Add pinctrl support To: Michal Simek Cc: Sai Krishna Potthuri , saikrishna12468@gmail.com, devicetree@vger.kernel.org, Greg Kroah-Hartman , Linus Walleij , Michal Simek , Linux Kernel Mailing List , linux-gpio@vger.kernel.org, Rob Herring , git@xilinx.com, linux ARM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 2021=E5=B9=B43=E6=9C=881=E6=97=A5(=E6=9C=88) 16:07 Michal Simek : > > Hi Noburiho, > > On 2/28/21 1:17 AM, Nobuhiro Iwamatsu wrote: > > Hi, > > > > 2021=E5=B9=B42=E6=9C=8812=E6=97=A5(=E9=87=91) 21:10 Sai Krishna Potthur= i > > : > >> > >> Adding pinctrl support to query platform specific information (pins) > >> from firmware. > >> > >> Signed-off-by: Sai Krishna Potthuri > >> Acked-by: Michal Simek > >> --- > >> drivers/firmware/xilinx/zynqmp.c | 114 ++++++++++++++++++++++++++= + > >> include/linux/firmware/xlnx-zynqmp.h | 90 +++++++++++++++++++++ > >> 2 files changed, 204 insertions(+) > >> > >> diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilin= x/zynqmp.c > >> index efb8a66efc68..299c3d5a9ebd 100644 > >> --- a/drivers/firmware/xilinx/zynqmp.c > >> +++ b/drivers/firmware/xilinx/zynqmp.c > >> @@ -784,6 +784,120 @@ int zynqmp_pm_fpga_get_status(u32 *value) > >> } > >> EXPORT_SYMBOL_GPL(zynqmp_pm_fpga_get_status); > >> > > > > > > > >> @@ -125,6 +131,12 @@ enum pm_query_id { > >> PM_QID_CLOCK_GET_FIXEDFACTOR_PARAMS, > >> PM_QID_CLOCK_GET_PARENTS, > >> PM_QID_CLOCK_GET_ATTRIBUTES, > >> + PM_QID_PINCTRL_GET_NUM_PINS =3D 6, > >> + PM_QID_PINCTRL_GET_NUM_FUNCTIONS =3D 7, > >> + PM_QID_PINCTRL_GET_NUM_FUNCTION_GROUPS =3D 8, > >> + PM_QID_PINCTRL_GET_FUNCTION_NAME =3D 9, > >> + PM_QID_PINCTRL_GET_FUNCTION_GROUPS =3D 10, > >> + PM_QID_PINCTRL_GET_PIN_GROUPS =3D 11, > > > > These do not have to have values, Because PM_QID_INVALID is 0. > > > >> PM_QID_CLOCK_GET_NUM_CLOCKS =3D 12, > > > > And you can drop value from this. > > Please take a look at > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit= /include/linux/firmware/xlnx-zynqmp.h?h=3Dv5.12-rc1&id=3D1077d4367ab3b97f6d= b2f66c87289af863652215 > > We are using explicit values as was recommended by Greg. Oh, sorry. I didn't see this comment. Thank you for this information. > > Thanks, > Michal > Best regards, Nobuhiro --=20 Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6