Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1339131iol; Fri, 10 Jun 2022 05:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyb6ss9MmBHo3poggze6Tm7h1BpQVuW2LzElrSMmP9uQJZhIKjKqA6PIXpRiF9lI6MfTaT6 X-Received: by 2002:a05:6402:354f:b0:42e:1f02:1379 with SMTP id f15-20020a056402354f00b0042e1f021379mr47655562edd.401.1654864696407; Fri, 10 Jun 2022 05:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654864696; cv=none; d=google.com; s=arc-20160816; b=KxmzB6mrgsYEK71E6JOEFjpesnGft+NLAAXwn20nANT8GRLq8pS17xC80ogftUdUp4 tG2GGMukptV24DZ5qeOKu3EEzhQ1LT96fFuC4XBF7iXH27Bf9sLwT7W3KjrI5VIqx6N4 vqX8dMdl3ebpRtFI5rLKYox3fx4vL8pMZvWVH5sZ/+XiaKkFE4MOF22G6HuYpY+1QOWH geRfpnSHedZ7XJw1CPS8lzprTmHYomZDToGk5Fi+aOmacAEmdDbjQZLHVB5UKqrrgmJT 8IIBgj7Zu9x12AQ+Ak/SYPdilzdUiJC/kmosxnltsBEMJWjmgskIg4u5C0c8rWkHEEbV wuWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=a5cYxsrZs6g/lSIx7BnXUD9zgtOAf/FWEjYm01yd8Mc=; b=RTpl9Pel6xpk30VB6ABFzlciHqqp4ALIMWCA9Cw65sOA0M/aRN6nwtdtp8XSWmwUaQ icS1Ixyy2YzZr0eivzhS9mtp1/4pJlHRwbDLyRbRx+R+TIfBdDCHIRPu8j4KtLebitjb 02I2zLEL2b+GqCW6gc2fXO+r/RWMSPOFR8rGefXmHjTZDwYia7l/w8w02LMQPbuYIQf/ UVFwAHhzpX/9qF/I2yL/XNo/3c7+8mQaip6BRvHTDLDnpv/ARoc4CyyDHh7rZb1LCq5U 5E1ED6sKvyC3uxsdPZb7b9SlVUAquVIDUMf+wK+UN+A6xhtKiyezdCmy+O9vjwGuSgOg gTEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=o1neMeCD; 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 b11-20020a056402350b00b00430328fe4a1si8147934edd.402.2022.06.10.05.37.50; Fri, 10 Jun 2022 05:38:16 -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=o1neMeCD; 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 S1348378AbiFJMY0 (ORCPT + 99 others); Fri, 10 Jun 2022 08:24:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348837AbiFJMYX (ORCPT ); Fri, 10 Jun 2022 08:24:23 -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 12CB62D252F; Fri, 10 Jun 2022 05:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654863861; x=1686399861; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=a5cYxsrZs6g/lSIx7BnXUD9zgtOAf/FWEjYm01yd8Mc=; b=o1neMeCD5qmuQ42X7yDRq05zb11zgFNvpcQDz3xGfeIzVSKQhUQsIVSl TlEzHmWZfMbKQAneVX3P32rMnS7aB+bzbjyQGyuSdEtCzxkw+hqTxGhDf d/+LYKxMsEqzyAI3MEuihoEuBjYNoKQx7NZWob1qt1CU0+qPh2cS1wSJY o=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 10 Jun 2022 05:24:20 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2022 05:24:20 -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; Fri, 10 Jun 2022 05:24:20 -0700 Received: from hu-srivasam-hyd.qualcomm.com (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; Fri, 10 Jun 2022 05:24:14 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v5 2/2] ASoC: qcom: soundwire: Enable software clock gating requirement flag Date: Fri, 10 Jun 2022 17:53:35 +0530 Message-ID: <1654863815-3970-3-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1654863815-3970-1-git-send-email-quic_srivasam@quicinc.com> References: <1654863815-3970-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Enable software clock gating flag in private data for SC7280 based platforms, which are soundwire 1.6.0 version based. Signed-off-by: Srinivasa Rao Mandadapu Reviewed-by: Srinivas Kandagatla --- drivers/soundwire/qcom.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index eb3c66e..441fbe8 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -194,6 +194,12 @@ static const struct qcom_swrm_data swrm_v1_5_data = { .default_cols = 16, }; +static const struct qcom_swrm_data swrm_v1_6_data = { + .default_rows = 50, + .default_cols = 16, + .sw_clk_gate_required = true, +}; + #define to_qcom_sdw(b) container_of(b, struct qcom_swrm_ctrl, bus) static int qcom_swrm_ahb_reg_read(struct qcom_swrm_ctrl *ctrl, int reg, @@ -1564,7 +1570,7 @@ static const struct dev_pm_ops swrm_dev_pm_ops = { static const struct of_device_id qcom_swrm_of_match[] = { { .compatible = "qcom,soundwire-v1.3.0", .data = &swrm_v1_3_data }, { .compatible = "qcom,soundwire-v1.5.1", .data = &swrm_v1_5_data }, - { .compatible = "qcom,soundwire-v1.6.0", .data = &swrm_v1_5_data }, + { .compatible = "qcom,soundwire-v1.6.0", .data = &swrm_v1_6_data }, {/* sentinel */}, }; -- 2.7.4