Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3317094iob; Mon, 16 May 2022 19:11:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP64bFE8MSbMcbhV+OaVyvC4ak6mCK8/vy62KS4gc7rRxriSBiUzQmRJlp+GChGTxWFInK X-Received: by 2002:a17:906:7193:b0:6fe:4392:9f85 with SMTP id h19-20020a170906719300b006fe43929f85mr6234024ejk.56.1652753469184; Mon, 16 May 2022 19:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652753469; cv=none; d=google.com; s=arc-20160816; b=noVI/2uDTBagjYUgYnnOaWVf4EPRVsQCFDy7B7/UQtxOQneQisyRJZK0AYyD09Cwx3 Y2HWQ72MT2vak9oFdxrwLK+nok3MG9zqPi2Xwvf6b3WbgBrJcgZhAX1J2ZoThzE2lrr5 cUMI/FZ5ggrPD2QBnvToz2FKRfu2jq8Yxj/PnMJ6ohKWWE7VuYjo90+gDmFly7xoX8sC +jV3F3OHbpfbtIXIbj6/qScEXBShKvOF3tU9hXjQWvJ0j2xx0Ax0D2OtD0r8XjrUN0SR rU1EuT+d90gtDvcnSWNUMwk8FeXGLHrDuPG2yOAtIcl0azdSQusoWdITNvod6L7hXfmA Ci3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aqUacUDD/fnqySsoi3HdJFEi/V1mTy/VfQQMnGzRza8=; b=XgrIh6qE8ogAYaIT1iuz+xrX+gpeiXL1gInjNnyGA+GlTStffFbhaPuwPzxQS2BX5Q rP3TDHwhtHBhVswDepX5T74xcbO7K+mnMaB7qKALBYk7ho00oIuua0u+AxOzrLJHdMiS jrZ/+y1azttnQDAyuor+sN1nazL+MiKyZYPlD/O5xs0bBNjTB/ZJc6MyD/ceVbt71vHA 3Q217G54ysfhD9oy9q4raJNuNLwkmJ2gYSO4+IMaNikYncaD4w44wu4gvuoB+/LYN2YZ Fuy42XlP4UIoQYp4wFnMcYwHeUwWghvqiljLigM+gBFb5NLRZbyF8TmXjDXpHtVhvLng XJDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dmfC0zUn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a056402090a00b00427ee0824e2si13932503edz.329.2022.05.16.19.10.43; Mon, 16 May 2022 19:11:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dmfC0zUn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232302AbiEPPPa (ORCPT + 99 others); Mon, 16 May 2022 11:15:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245033AbiEPPPZ (ORCPT ); Mon, 16 May 2022 11:15:25 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40DA73BA66 for ; Mon, 16 May 2022 08:15:23 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id y14-20020a9d460e000000b00605ee347da1so10258230ote.8 for ; Mon, 16 May 2022 08:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=aqUacUDD/fnqySsoi3HdJFEi/V1mTy/VfQQMnGzRza8=; b=dmfC0zUnM3Da4eBmHuwkOrpuYP643Dic9NsM1QhvrqzZggtptHBQDGNxfy6PdTxadp 0WuH6KV4+gkux/NZgj8EAnr7WeIeOjpQpaTch577VWirBI7CKJsjc/eySNgOlfbTA6+O vfF7AJ0JYNL8acPMBsHIbylCVcn8VAYVcqKGBCjy2bbjQSmniPC7FVH0oWqXWBc1CVE0 2E58YZqxk95IMCcPfWaPL/21THyhS7lvMivfJsDimueM5vMX0Tu4E0bb5R7nXiAnqGMG +SxQubBfyUDFkhNrgmoHlz90Pp0twEahIdAUh4C3BiFtparP46Mxgj1X0+UU/1PsunOs nE1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=aqUacUDD/fnqySsoi3HdJFEi/V1mTy/VfQQMnGzRza8=; b=lCf5I1NBsacJV6URE2ydz1FGUwu4P5Z4P9pAYbkFefK7SjzzBI/ZO8IeyO4VYL3Evh qHtmiU1PB//n7j5wjn1b9BbPpj3E6EUO2ZjcOrVr3YKftfJGoixyXenpNhE/a7oGp9SM dCUCdvfBA0I1I4pXixcYmd/H6h4bd2oBcvg0wDmAxwtPxhGUTfknD8nwji0F4HNmp5Rc gl8u/AsRv1kRLsa6I4sLytU5m2FKXD70HOjizBM8nkN76dN7E5HxexeRFo8zcPyuUE0Y 5ooHc6OriuungGKwaXmS2ZqDuDxBgqZ1eh+frCvch4w/j1bVi1/HA2Wm2SF05US6cHav JYWw== X-Gm-Message-State: AOAM530lh3C7rtxBRV9OHpOekQsUqZ/QWle3eGxLLODiHAWItQZaIdrm PUbsn6Kn6l2Mb1op9b8+CsJEkQ== X-Received: by 2002:a9d:2f65:0:b0:609:a162:388d with SMTP id h92-20020a9d2f65000000b00609a162388dmr325956otb.331.1652714121253; Mon, 16 May 2022 08:15:21 -0700 (PDT) Received: from ripper (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id 23-20020a9d0317000000b006060322125asm4070722otv.42.2022.05.16.08.15.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 08:15:20 -0700 (PDT) Date: Mon, 16 May 2022 08:17:44 -0700 From: Bjorn Andersson To: Srinivasa Rao Mandadapu Cc: agross@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, quic_plai@quicinc.com, bgoswami@quicinc.com, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, quic_rohkumar@quicinc.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org, Linus Walleij , linux-gpio@vger.kernel.org, Venkata Prasad Potturu Subject: Re: [PATCH 2/2] pinctrl: qcom: sc7280: Add lpi pinctrl variant data structure for adsp based targets Message-ID: References: <1651672580-18952-1-git-send-email-quic_srivasam@quicinc.com> <1651672580-18952-3-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1651672580-18952-3-git-send-email-quic_srivasam@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 04 May 06:56 PDT 2022, Srinivasa Rao Mandadapu wrote: > Add compatible string and lpi pinctrl variant data structure for adsp enabled > sc7280 platforms. This says what the change does, but gives no clue to what this compatible represents and why the clock is not optional. Could you please describe here what scenario this compatible is to be used for etc, so that when someone else adds support for the next platform they can use the git history to understand which case to follow. Thanks, Bjorn > > Signed-off-by: Srinivasa Rao Mandadapu > Co-developed-by: Venkata Prasad Potturu > Signed-off-by: Venkata Prasad Potturu > --- > drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c > index 2add9a4..c9e85d9 100644 > --- a/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c > +++ b/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c > @@ -134,6 +134,16 @@ static const struct lpi_function sc7280_functions[] = { > LPI_FUNCTION(wsa_swr_data), > }; > > +static const struct lpi_pinctrl_variant_data sc7280_adsp_lpi_data = { > + .pins = sc7280_lpi_pins, > + .npins = ARRAY_SIZE(sc7280_lpi_pins), > + .groups = sc7280_groups, > + .ngroups = ARRAY_SIZE(sc7280_groups), > + .functions = sc7280_functions, > + .nfunctions = ARRAY_SIZE(sc7280_functions), > + .is_clk_optional = false, > +}; > + > static const struct lpi_pinctrl_variant_data sc7280_lpi_data = { > .pins = sc7280_lpi_pins, > .npins = ARRAY_SIZE(sc7280_lpi_pins), > @@ -149,6 +159,10 @@ static const struct of_device_id lpi_pinctrl_of_match[] = { > .compatible = "qcom,sc7280-lpass-lpi-pinctrl", > .data = &sc7280_lpi_data, > }, > + { > + .compatible = "qcom,sc7280-lpass-adsp-lpi-pinctrl", > + .data = &sc7280_adsp_lpi_data, > + }, > { } > }; > MODULE_DEVICE_TABLE(of, lpi_pinctrl_of_match); > -- > 2.7.4 >