Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3832273pxb; Mon, 27 Sep 2021 03:44:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOgmaUihewHAmPT3hWlGkOhLt8iApsaCLlJjLpTNKw+vZxvqw1qBErtL5lvkbqbokpdRN7 X-Received: by 2002:a62:1e43:0:b0:447:cb0b:4c6e with SMTP id e64-20020a621e43000000b00447cb0b4c6emr22778706pfe.1.1632739485738; Mon, 27 Sep 2021 03:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632739485; cv=none; d=google.com; s=arc-20160816; b=aoQ9VHXpDdL07UDTdFdpOSFnFf19tzmFNKGd+RrPMBMZ/JYAGvBo/nwSW8vgbt7S9v GNgkH7YgdwEC+rKrK1j2bKAqHfK5GUNF8Xd1C2YIVtciDXbMghsqvVbbJCPT28lsAOgT OtFwy446hS25ZVDtfSFcTlU4Yab0z1/rS7ea2JgoctRvufE4jbIRqVG5I40EYLA8UML5 zekEjLJRBMirwgMcdUdmH/clAh0EXV9R4iN53c6lY8zaDy7AMmL9Jrg+LUzfHTRx1lZp rZ9lwXtQMXTzpWIcbqmdBryp0I/bfp4jStablaRE85O+boO+Y0ZjHbsYBTuDTCDnhr7R yqGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=qXNuvpJlyjSNrgzOqRqsp7gQ1I5PBxPfkM0hf91W8lY=; b=NkBGBMS9xrOVUlryJaBhmLAYux3Qe4WPryQPx1yGR2ajozX9l58HKep7cBGM6RnZ3D HWu8xzekYUrVCwSCP4Dlzje0Sa0tw9BoHZUBG9KS2HAy9t+uDBgBkyVfVINcLT2zMvxV Meosl/zAFN4N9XUyfxUKFIOAROWRmmHV7/K4hyKr+9wekQkJ07qVzQnj5bplUxsLNHTJ p4lzUV0zWdGaoC0Jnktkv0hxWQLJfONUj42I+TxfnWnhJklIIGu9pIE3vfMWI7N1+tC6 5i2gc1n2q4rX2kz5YCOLCN5bz6MlgX63YkAdQ9dWFuoVxX2+m/AZYLDKPl3qVTPTRWfa XL4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ke3i1yko; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 193si21234966pgg.1.2021.09.27.03.44.32; Mon, 27 Sep 2021 03:44:45 -0700 (PDT) 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=@linaro.org header.s=google header.b=Ke3i1yko; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233898AbhI0Kol (ORCPT + 99 others); Mon, 27 Sep 2021 06:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233875AbhI0Kok (ORCPT ); Mon, 27 Sep 2021 06:44:40 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C69A8C061575 for ; Mon, 27 Sep 2021 03:43:02 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id z184-20020a1c7ec1000000b003065f0bc631so78060wmc.0 for ; Mon, 27 Sep 2021 03:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=qXNuvpJlyjSNrgzOqRqsp7gQ1I5PBxPfkM0hf91W8lY=; b=Ke3i1ykoPbGEAAEA4nUyXqJpkf2ynn+0FDzRDaoFigBy5Mw8qFbOauhlbROJ3lnzWG pM3p3zbREIOSs0XG5wnTUNhQPcOQrBUSDRK1GeGm6y/QTpUulN7mzMfaYqf4t3jHWWk5 c2CDdOxTAdHeeEmjEIuUPvRG1tqM6zPV764wt63J6rOCX+OkI4iJJjrbEJw3yS/348IA lwBYA1np4+430aNrhcJS46DdVoqSX8gkZkkuiPIHTz9f8eBv83SQsEEbdQdI5ttuIY8G g8VZB/97UL4EscYW4M2bO82HZAC4Q0GRYzh0M46h1xs8FJoMxAu8aq2bu5khZtc3/6+X VuMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qXNuvpJlyjSNrgzOqRqsp7gQ1I5PBxPfkM0hf91W8lY=; b=4wSUw9O7NTuM0fNKmIHuW5v4mKzEH53onb0EulmtkY/N6yUqeu+lg76TGeDxRvmnPr MxVrgNGqwTi1TMrkXhHN/OvtyvBAByaCkhu5PNBwLZ01oRJBZ9Pf6xolGwjSBp/+a7P7 ET9NLfX/eyzzG0hriYh+HefN1IqUuOw1TK0lGCqfqKZv36n9xqb7Yylbsa7Cmhx09rGO WojhzMWZpeO2jpAiBo1sNPnDsAyWuLOK3ST3jvFg+BBfZcqCbvwAlkbygGESf+kPXV8B xqNaBOKNLankXPiPAvauZQ6Nc4rDiSyjaHeGjEpCgqsADJgGIj0tSvxqtqg3XIYcPbnn 4Nhg== X-Gm-Message-State: AOAM530fyg8qaWjNRcpcLko21ufb8uoLjafXFa5Jvf2wJUhucvGQuKxE ASc9F7u95E/xdqqiC3+LY4gHAg== X-Received: by 2002:a05:600c:28e:: with SMTP id 14mr2938720wmk.88.1632739381393; Mon, 27 Sep 2021 03:43:01 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id g17sm6278181wru.62.2021.09.27.03.43.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Sep 2021 03:43:00 -0700 (PDT) Subject: Re: [PATCH v2 5/5] ASoC: codecs: Change bulk clock voting to optional voting in digital codecs To: Srinivasa Rao Mandadapu , agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, rohitkr@codeaurora.org, 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 Cc: Venkata Prasad Potturu References: <1632313878-12089-1-git-send-email-srivasam@codeaurora.org> <1632313878-12089-6-git-send-email-srivasam@codeaurora.org> From: Srinivas Kandagatla Message-ID: <2b401e05-ae34-846e-8e1d-b5db3e0df40e@linaro.org> Date: Mon, 27 Sep 2021 11:42:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1632313878-12089-6-git-send-email-srivasam@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/09/2021 13:31, Srinivasa Rao Mandadapu wrote: > Change bulk clock frequency voting to optional bulk voting in va, rx and tx macros > to accommodate both ADSP and ADSP bypass based lpass architectures. > > Signed-off-by: Venkata Prasad Potturu > Signed-off-by: Srinivasa Rao Mandadapu > --- Reviwed-by: Srinivas Kandagatla > sound/soc/codecs/lpass-rx-macro.c | 2 +- > sound/soc/codecs/lpass-tx-macro.c | 2 +- > sound/soc/codecs/lpass-va-macro.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c > index c2b9333..2bed5cf 100644 > --- a/sound/soc/codecs/lpass-rx-macro.c > +++ b/sound/soc/codecs/lpass-rx-macro.c > @@ -3531,7 +3531,7 @@ static int rx_macro_probe(struct platform_device *pdev) > rx->clks[3].id = "npl"; > rx->clks[4].id = "fsgen"; > > - ret = devm_clk_bulk_get(dev, RX_NUM_CLKS_MAX, rx->clks); > + ret = devm_clk_bulk_get_optional(dev, RX_NUM_CLKS_MAX, rx->clks); > if (ret) { > dev_err(dev, "Error getting RX Clocks (%d)\n", ret); > return ret; > diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c > index 66c39fb..c288471 100644 > --- a/sound/soc/codecs/lpass-tx-macro.c > +++ b/sound/soc/codecs/lpass-tx-macro.c > @@ -1794,7 +1794,7 @@ static int tx_macro_probe(struct platform_device *pdev) > tx->clks[3].id = "npl"; > tx->clks[4].id = "fsgen"; > > - ret = devm_clk_bulk_get(dev, TX_NUM_CLKS_MAX, tx->clks); > + ret = devm_clk_bulk_get_optional(dev, TX_NUM_CLKS_MAX, tx->clks); > if (ret) { > dev_err(dev, "Error getting RX Clocks (%d)\n", ret); > return ret; > diff --git a/sound/soc/codecs/lpass-va-macro.c b/sound/soc/codecs/lpass-va-macro.c > index 70f09b4..11147e3 100644 > --- a/sound/soc/codecs/lpass-va-macro.c > +++ b/sound/soc/codecs/lpass-va-macro.c > @@ -1408,7 +1408,7 @@ static int va_macro_probe(struct platform_device *pdev) > va->clks[1].id = "dcodec"; > va->clks[2].id = "mclk"; > > - ret = devm_clk_bulk_get(dev, VA_NUM_CLKS_MAX, va->clks); > + ret = devm_clk_bulk_get_optional(dev, VA_NUM_CLKS_MAX, va->clks); > if (ret) { > dev_err(dev, "Error getting VA Clocks (%d)\n", ret); > return ret; >