Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1737435iol; Fri, 10 Jun 2022 13:54:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuqR23b9yfR98f9et7XVrBvn4UIpv4h7rWNQtt1VxDjWcw67VAL/XyA4vj7kDr+hGJMjOn X-Received: by 2002:a17:902:9b8b:b0:168:a981:1232 with SMTP id y11-20020a1709029b8b00b00168a9811232mr10239951plp.86.1654894495866; Fri, 10 Jun 2022 13:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654894495; cv=none; d=google.com; s=arc-20160816; b=kIqiTbsK8LWGnorAtFLwVv7ygc+goMqCtoKA/5+4gOKd7Of7C7ofFnHXwyr6rSf/LG kHEfA6JmG3yQNZHZ5Kj/a2I2lUWuebvcw8zwwPWTnmWXfJO3Eg6gFJfkiJiHXVA+z8tL CXZ5sfN/LURTds8Nk8eZ/zQTFrtLi7iRHcLejDTxsgYzcVQ97+Fn8xav5vp2xijI4UPU 3W7Og6hUQ+syA4m/uMd5N4m7JcWIjg3Sd4/BriC984mCISdaefZK7DTlLI1yumEJB6ga WvBsdkX2bZPTsDd1vRZZqslmwiOgWIv+7l0LuQcEKHilv6fKBVtuycYq+hWRCRmi88tY CqUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=c4MmH10o4nxyvNb+yLQx/gfjamZc60fdBQ6fL0rTVzI=; b=yfpD70/PfOUSd6xvOwxDSMBdGbg0LYJbHTiRbpsuABG6XVSo8JbeqbFuaUEirgA/eP d3MG81IEX4iQnFzIrPcyN9IJ0lN3FE6GPUTupFAbtv3jkx1YlECLWvQBVLh93AQjOT5z RlKRZSbzJ5sFeg4El++DRuKykGw91kRiB+IEyE8sndWniAB9cKGASBocMFqoAqtOCI5g Bn3oJWygT3zagQEYF7SKIFp+nHv9fHSWCeDLBa3quqDNqgc35jySfl2s8Fh9Q+oYPBnU 1wUqVQrYXH9Ai2kPZ8psnmk4YQBv4qJPrau2aPbIlBmuy8fZpYYW7JVWMeN53ly1vBIY ALcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lc3Jw2kY; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020aa7842a000000b0051bc3d323e5si31263942pfn.341.2022.06.10.13.54.21; Fri, 10 Jun 2022 13:54:55 -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=@chromium.org header.s=google header.b=lc3Jw2kY; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347594AbiFJUH7 (ORCPT + 99 others); Fri, 10 Jun 2022 16:07:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347111AbiFJUHz (ORCPT ); Fri, 10 Jun 2022 16:07:55 -0400 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C64523D983 for ; Fri, 10 Jun 2022 13:07:54 -0700 (PDT) Received: by mail-ot1-x332.google.com with SMTP id 93-20020a9d02e6000000b0060c252ee7a4so4188262otl.13 for ; Fri, 10 Jun 2022 13:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to; bh=c4MmH10o4nxyvNb+yLQx/gfjamZc60fdBQ6fL0rTVzI=; b=lc3Jw2kYMP3blVRs5hUBawz3Z348qfuHGhD4gAfTjY60kprFN86B288vsV0RzUZPx1 L4vpiCkCaYKglDEWWttA+6QB56lkIvgoEWqjghhhgYk5Dw2nrJHkvcYYzn7Exz22MlEN w2i6N0ecijCkk2h7RfYLniM5gpudUcyROSG2g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to; bh=c4MmH10o4nxyvNb+yLQx/gfjamZc60fdBQ6fL0rTVzI=; b=gYGGzUDHOoGr+a7DIMni6suHN6cH8bBrf8Lh4jVMtJTsX6CfPOFbpasO5Eidq20Q7/ vLE3qjXu1iipcp8k+Q65gSBgPLeZcNAslb1PZDo4aVRg5T8YvdzRcntNhfjNDrz+M9Ce qNNyeNOH2IeoXVmpPxjL0ZPAAdHrrwNGXsMlFaP8CZSNBgdQxVPeamVVV9g+Z8/e4goF gPUETQtBSRVTmNveKwaINrbkHDOshX6XEhvylqb9vtYe0YO0hWNFy1iF5WhIkLTZ8o44 ns5H3mTa/J/aZ8Xv8qGZ0NkQ7RC7QpourtPeaOuTUweU8mVyZpZNo6i/CRkoI+TuMX3z KimA== X-Gm-Message-State: AOAM530pMqj2DJWnO8juz3yDmSXQwyTpVtko9wcZ3LIp8dpVjx8ojBiI GLnPcX4tom2qPLM10GxxQFI5bQ91TeU8M2FXRS7Wuw== X-Received: by 2002:a9d:6484:0:b0:60b:eb0b:4054 with SMTP id g4-20020a9d6484000000b0060beb0b4054mr73615otl.159.1654891673442; Fri, 10 Jun 2022 13:07:53 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 10 Jun 2022 13:07:53 -0700 MIME-Version: 1.0 In-Reply-To: <1654872335-4993-3-git-send-email-quic_srivasam@quicinc.com> References: <1654872335-4993-1-git-send-email-quic_srivasam@quicinc.com> <1654872335-4993-3-git-send-email-quic_srivasam@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Fri, 10 Jun 2022 13:07:52 -0700 Message-ID: Subject: Re: [PATCH v3 2/2] pinctrl: qcom: sc7280: Add clock optional check for ADSP bypass targets To: Linus Walleij , Srinivasa Rao Mandadapu , agross@kernel.org, alsa-devel@alsa-project.org, bgoswami@quicinc.com, bjorn.andersson@linaro.org, broonie@kernel.org, devicetree@vger.kernel.org, judyhsiao@chromium.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, perex@perex.cz, quic_plai@quicinc.com, quic_rohkumar@quicinc.com, robh+dt@kernel.org, srinivas.kandagatla@linaro.org, tiwai@suse.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Quoting Srinivasa Rao Mandadapu (2022-06-10 07:45:35) > diff --git a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c > index 74810ec..6e03529 100644 > --- a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c > +++ b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c > @@ -388,6 +388,9 @@ int lpi_pinctrl_probe(struct platform_device *pdev) > pctrl->data = data; > pctrl->dev = &pdev->dev; > > + if (of_property_read_bool(np, "qcom,adsp-bypass-mode")) > + data->is_clk_optional = true; > + Or just data->is_clk_optional = of_property_read_bool(np, "qcom,adsp-bypass-mode"); > pctrl->clks[0].id = "core"; > pctrl->clks[1].id = "audio"; > > diff --git a/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c > index 2add9a4..3fc7de1 100644 > --- a/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c > +++ b/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c > @@ -141,7 +141,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 = true, > + .is_clk_optional = false, Just drop it as 'false' is the default. Otherwise Reviewed-by: Stephen Boyd