Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1000629imi; Fri, 1 Jul 2022 00:20:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tat4QxTf4Wyvqkz3FMiXZoLVjewfEesWDrINtaff/EpCDf8DfFeWoeQF6gJQlX1kfQKwdq X-Received: by 2002:a63:87:0:b0:40c:b1f6:a879 with SMTP id 129-20020a630087000000b0040cb1f6a879mr11252458pga.236.1656660008428; Fri, 01 Jul 2022 00:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656660008; cv=none; d=google.com; s=arc-20160816; b=VlTptnTf3lToYu1HNbWOWKZZ7BUf+M5NNMuJ83T6SP48lkiwRuh8Rp+ruE6yNoU01d HdPGxN/WFw0W353/dbDXqfiwpralPa+lObNg6bre4ExVQ1DPfBVE+dsQF8Luw0CcNMCJ xi8UpuaXuowBq1LGncl2tjorxTzTe3YAe/I/KYKla09LnyzlGxcqLWTn26pOwjjiE8tl SYlz4tguhdYaZb/uBNwPoWa/SFovr9UbhG5VFdimVy0iqhCrz8sRI9A2ISe1ZdUnSBoT IBQxMOHRHVfM1Aqe5E3vJW29HNc9ifCOQmd6OV87dcbf897J8FGUbREYXvaE5rQrzly5 wYpA== 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=d3C89lxkSV25rneKnYRK3zet+skzg3cqSdSRgWF97+s=; b=vXtONshWg+jr8/cOM78HDbESVDRG+CqM1vmpZKZltiF53O9vIo0CIjTZN6p3jv19Kf HwqgLnDiXA0ipn0ZBj8EDPYgvW+qv/sncZNQu3w9+52OXg725fYjP/xgSeOwgmAkjcir r+r730jvUqMx5YL4eM4a0vXauqMHU9aC1Hc5R1UEv5ic2M86pgsiHgks5/5Iv4TLDFJt SBnZSI+6vrfB7hHJvPcnUzeARXVROMQEuxeac9R/NWyQkybpCBvZqbb1Cgah/umk8n2p GrvvVkN4jQn/cdnCIuCVF+muNFo8h1du3iIJJycOWMUns63q0ShRBHy87rqlxpfYGnfy Z0QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="tas/J0XQ"; 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 o16-20020a634e50000000b004113ecbaa43si3856734pgl.836.2022.07.01.00.19.55; Fri, 01 Jul 2022 00:20:08 -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="tas/J0XQ"; 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 S235213AbiGAHRn (ORCPT + 99 others); Fri, 1 Jul 2022 03:17:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235062AbiGAHRk (ORCPT ); Fri, 1 Jul 2022 03:17:40 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3904A6B276; Fri, 1 Jul 2022 00:17:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656659860; x=1688195860; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=d3C89lxkSV25rneKnYRK3zet+skzg3cqSdSRgWF97+s=; b=tas/J0XQ1VsMCTn0BtT5eI6GVS4rw7pVd/hdDFrR00PwQ2t74E3CirPT Sr4mfaxHZzaIhq/SmuEoxd+1jUI+0Qep0YmxXQLrAwn0WLAOY6GnF4ry0 HPTQW1mUBStwi5DyqKvyt/vaELlPrrG1moHPqIsNjnY5teKitd+7a/SNh 8=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 01 Jul 2022 00:17:39 -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 Jul 2022 00:17:38 -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, 1 Jul 2022 00:17:38 -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, 1 Jul 2022 00:17:32 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [RESEND v5 2/2] ASoC: qcom: soundwire: Enable software clock gating requirement flag Date: Fri, 1 Jul 2022 12:47:07 +0530 Message-ID: <1656659827-27450-3-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1656659827-27450-1-git-send-email-quic_srivasam@quicinc.com> References: <1656659827-27450-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: 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,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 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 5baceda..4a77e74 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -192,6 +192,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, @@ -1558,7 +1564,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