Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5598197ioo; Wed, 1 Jun 2022 08:38:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5LKbfx8jUWC7hpeH66H0WC1GElRwtqMhkhU2u6MPDJS8yBnU/wgnHUQysGthbc/2TtOcX X-Received: by 2002:a63:6846:0:b0:3c6:cb42:cdb2 with SMTP id d67-20020a636846000000b003c6cb42cdb2mr430623pgc.511.1654097897835; Wed, 01 Jun 2022 08:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654097897; cv=none; d=google.com; s=arc-20160816; b=I8vobYoBShH8+4rjZFlpLJuFrHxXdu1nutbafqYci4RQbR32iyArsI9qsGsENmba9b tO+Aw1CEFAK9zi45pYVG3eS+zA/jSw3ycGesAev5WCKEbh426LSokNdT2eBsSP8Q72oB 98dNz00At73HuM2oNyy2FHFrD7QIzVMhmY4g5FRgoHVBfxOEOaO0bgwr8jnchXQnwTJK RjyB28lBYzYLDQs4MdJ+P6m0PDPJeUkDFLvQPcPEP5hT2rYTCTMvCfUnrp7Nv4+BsdiK hwFXsaPGfHaP9lV5iRvKMn5ifPpkRO3DiPP3M/KiyV6l51Pt0YwA/N+wu6Q91yAcibfE cPwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=Rezegc47oD04NrEL7IdrsnJsfPKKiLWJ9Y6Vzv7ZuDI=; b=emRe76miVpEwu78Obh0M1t4x0xnSosDfNkZEOVG7IaYgg87ZpbJOcOO8eUHf+H+64l Zy7qn/Ak78Wd3vr3vtavxzC6XNmrcNVHhjopj4TEZA7Xg2oP/1rmZEaBpOE1zsKavHh0 S0IDN0HtuxrltpD10+3Hw80aDx58Dik+N0VMaweuEjL4DqgCJEnnHCEmj/Qtlg1X6xjc pMhSESql2n4sYsZPKgcyhyjyZuDpgj0+zUWJ9eT+u/Jz8ETrheWOzJM7NIRM5qlwksOZ zFvNv7dHRNiuUaUXxu2y4Dz3x7YyqXOmgL9t9gqwpIYQs9kxvLim6SKb8FSwlqVrrRB4 3L3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="lg/pJvuT"; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a170903125100b001640824e7d3si3350633plh.152.2022.06.01.08.38.03; Wed, 01 Jun 2022 08:38:17 -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=@quicinc.com header.s=qcdkim header.b="lg/pJvuT"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348356AbiFAJ5A (ORCPT + 99 others); Wed, 1 Jun 2022 05:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbiFAJ47 (ORCPT ); Wed, 1 Jun 2022 05:56:59 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFA88BE0B; Wed, 1 Jun 2022 02:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654077415; x=1685613415; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Rezegc47oD04NrEL7IdrsnJsfPKKiLWJ9Y6Vzv7ZuDI=; b=lg/pJvuTvvu0o4nBmh0Jt2ZsV5D0Z12SfmJCEkXxXKD7igDlgASaT4p1 myCsSQ+iwFGqbnzomp3PUe3W7LvgVLCTmM8TwYuJawJ1vHQYMoL3zEsY5 VXdP2l1MkkwV3yoslvh2CAklpVW2inY9Q3t5saKXdv5Bu9RqwukvkNsab E=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 01 Jun 2022 02:56:55 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2022 02:56:53 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 1 Jun 2022 02:56:53 -0700 Received: from [10.216.6.145] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 1 Jun 2022 02:56:47 -0700 Message-ID: <26bfd089-46d6-d08d-efac-71ffc04f674c@quicinc.com> Date: Wed, 1 Jun 2022 15:26:44 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 2/2] pinctrl: qcom: sc7280: Add lpi pinctrl variant data structure for adsp based targets Content-Language: en-US To: Bjorn Andersson CC: , , , , , , , , , , , , , , , , Linus Walleij , , Venkata Prasad Potturu References: <1651672580-18952-1-git-send-email-quic_srivasam@quicinc.com> <1651672580-18952-3-git-send-email-quic_srivasam@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 5/16/2022 8:47 PM, Bjorn Andersson wrote: Thanks for Your time Bjorn!!! > 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 Okay. Will update the commit message. > >> 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 >>