Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2591731pxb; Sat, 19 Feb 2022 16:45:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbp0ON7SzXjj+YQDD/tTLbeWeEinUXpsIPzmafoZfFk/PVbLMbTRiF1nycxYNDKeXOmoWq X-Received: by 2002:a17:90b:1b4b:b0:1b9:b458:540d with SMTP id nv11-20020a17090b1b4b00b001b9b458540dmr15019226pjb.107.1645317903823; Sat, 19 Feb 2022 16:45:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645317903; cv=none; d=google.com; s=arc-20160816; b=o8pEhy2F3YhxqUFd51hNXn9mDOf/0FdDy1D7BhTfBkrwz3p/JjEeKHTz+0umhbM4S4 +nFZM0tieegx2mlOkZb1nRH4ZgOKvBiFK8nBo3VoTJqTVllhQuvljOWhPRZ95DIowh8a NncJ/vMiRdTculBPK1DgO4iJfHt4V6CTCMxtChpl+E8KKRRwQaU0s9RMPo1uusVdvASu 6CdMUvdludsjuZ2p4Eyz6G6aiVMLuH4sUs3OBeea6FVxDLJfLaVYoG+AKxF4kHmodM6L Nxe7BduE/NGHq1n/LLwHtk8GVgpXgCkuNqNUVUN2jXc6jkOuShlGVinE8LIAroHVigEs DNpg== 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=GhY3fDCHu53ziSnkTw5eFSyoPC2rhAzNSF2CnP6JEi4=; b=RxLTfbg75dK0TR4hLsHXLhoHhjIC2nd6BbKnSAIOrd25iJrMqbuRz9bc/kJwSWrvhD hqRWIyXeHQuuCpa/s8veYsgjKhmxsCK9XQQtbGlshKvzYnNds9PclmFrWeVzgS0qOML0 kCQeN8uXOk7mE4aJb2GOh+9NjecO9Vmwl36xYXSUbcBd/nc+FkAo3u+E48lUpF8Lgtnc 2gCUyffYFUYeQspO3Ww0vAxe/50yuLGA4o1VxEo8r9Likm12NzRHpC5nS7gL5f1rf495 7Y5RAE08HQnMlHRldnUnivtqGnaeqe09O7eA7fP9D++kU6C+m4FcekkV9ibZO9S32IB6 ttcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=I8v92+Ve; 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 r3si17950005plo.103.2022.02.19.16.44.48; Sat, 19 Feb 2022 16:45:03 -0800 (PST) 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=I8v92+Ve; 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 S242877AbiBSSh1 (ORCPT + 99 others); Sat, 19 Feb 2022 13:37:27 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237333AbiBSShZ (ORCPT ); Sat, 19 Feb 2022 13:37:25 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABF7341305; Sat, 19 Feb 2022 10:37:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645295825; x=1676831825; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=GhY3fDCHu53ziSnkTw5eFSyoPC2rhAzNSF2CnP6JEi4=; b=I8v92+VeW5ypO7DaWL+jYPZ42M3jUP+4u3IQ1nUvPyZhjeVlWf76JONd LJZ7hx+pBFVQQgdGkNZ6iSameez0OPYe+s7ymmAgsPJjqRAPXkWE1sS0A fxSHW2Z2XrV1QkEdLpzBQh8qfRq1ClOzHyk6g69nX8EATbXl4UTny3dqd w=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 19 Feb 2022 10:37:05 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Feb 2022 10:37:04 -0800 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.15; Sat, 19 Feb 2022 10:36:51 -0800 Received: from [10.216.20.52] (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.15; Sat, 19 Feb 2022 10:36:44 -0800 Message-ID: Date: Sun, 20 Feb 2022 00:06:41 +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 v6 7/7] pinctrl: qcom: Update clock voting as optional Content-Language: en-US To: Stephen Boyd , Linus Walleij , Srinivas Kandagatla , , , , , , , , , , , , , , , , CC: Venkata Prasad Potturu References: <1644851994-22732-1-git-send-email-quic_srivasam@quicinc.com> <1644851994-22732-8-git-send-email-quic_srivasam@quicinc.com> <09b00fe9-1770-1723-3c4c-6c494da87e8d@linaro.org> From: "Srinivasa Rao Mandadapu (Temp)" Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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=-4.4 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 2/19/2022 8:16 AM, Stephen Boyd wrote: Thanks for Your time Stephen!!! > Quoting Srinivas Kandagatla (2022-02-16 07:38:02) >> >> On 16/02/2022 14:41, Srinivasa Rao Mandadapu wrote: >>> On 2/16/2022 7:50 PM, Srinivas Kandagatla wrote: >>> Thanks for Your Time Srini!!! >>>> On 14/02/2022 15:19, Srinivasa Rao Mandadapu wrote: >>>>> diff --git a/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c >>>>> b/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c >>>>> index 5bf30d97..4277e31 100644 >>>>> --- a/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c >>>>> +++ b/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c >>>>> @@ -143,6 +143,7 @@ static const struct lpi_pinctrl_variant_data >>>>> sc7280_lpi_data = { >>>>>       .ngroups = ARRAY_SIZE(sc7280_groups), >>>>>       .functions = sc7280_functions, >>>>>       .nfunctions = ARRAY_SIZE(sc7280_functions), >>>>> +    .is_clk_optional = 1, >>>> This is forcefully set assuming that sc7280 is always used in ADSP >>>> bypass mode. Which is not correct. >>>> >>>> Can't you use devm_clk_bulk_get_optional instead? >>> Yes. Agreed. Initially used devm_clk_bulk_get_optional, but Bjorn >>> suggested for conditional check instead of optional. >>> >>> Again Shall we go for optional clock voting? >> That means that the condition has to be dynamic based on the platform >> using DSP or not. Which is impossible to deduce without some help from DT. >> >> I would prefer to stay with optional clock unless Bjorn has some strong >> objection on not using int. > I think we need the combination of optional API and bool flag. My > understanding is it's optional on sc7280, but not on the previous > revision, so we want to be very strict on previous revision and less > strict on sc7280. Hence the flag. Maybe we should change it to > clk_required and then assume optional going forward. Then the callsite > can use one or the other API? Okay.Will change accordingly.