Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp512368iol; Thu, 9 Jun 2022 08:09:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi7yG+qAxLzdmKK+Q0Y2fZ8Zcu0Z7O6jCFbqFCe6US0XkEsx/zS/LVyPsEtfesAiYEuENL X-Received: by 2002:a17:907:8a03:b0:711:f3c3:71a6 with SMTP id sc3-20020a1709078a0300b00711f3c371a6mr8749185ejc.659.1654787397525; Thu, 09 Jun 2022 08:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654787397; cv=none; d=google.com; s=arc-20160816; b=SHNcJBoWLlEaFGCf0/c2i8Ecf6FBTbPMDvoZY9lKNNmrvziCP76WaguOfMFeYchRfe VzBIUn7yGwCjGq+xY1xrAiqwdmKDxwWcDmVAoI+ceLgn4J8hkfGl44FvqDX5Thi5Hm9w MBIrFinqB3DHMGobLg4eu85p22rNIzl1eKVpfG1G7vCWUQIliHBHn7+sSyK/L4/+hSw3 /C7Oj41BWAbB1CD8Vrhflf/i71pqifdTTbWeDRs80RYC+xBkBMWR7sdSQmPg46qiqFPI 4BS5ku3/eyzS6y3ME/5tgdlchLVnwi/vRaSO0NjLxx0t9U1gsPFD07Utxu82OIQuVeNP 6S5Q== 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=KcVpOMqtcK0GLgko7LK59DZwvEdtoQYB3VprnfPBpDI=; b=XXG2DX8AB58NcKu8ecl/wqsYzqi3iXuGnv9+gbYUsMW11DEvK4yRyaClRArazw9zHs yrBuYQH01m7O61x8dsUFyg+slur49mIlQyvx+63AO7D2/RkcN5WzA6WEY/A5choip8BK w7+954nrsPnjOEpDnbfKgPUZPl5CKYNNcKZuVvzYpYchECIUSyyJHVjqwpndbEbOWdyu rCXiV6Ma5YRBhSSf1wTqRaOAnnKuUmOy/R3myEb2oCUVm/0obf22GUvXNCOKkSnA1QHy jOKCobT1bfEMBr6qk2xSnZrBRcm68DhAK+baNZqYIPl+qnUcfby/xJfNyEKbSwPy0v0s Tf5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=fZNDrVuV; 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 dd22-20020a1709069b9600b00711f8a14dd3si5132716ejc.660.2022.06.09.08.09.29; Thu, 09 Jun 2022 08:09:57 -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=fZNDrVuV; 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 S1344014AbiFIObJ (ORCPT + 99 others); Thu, 9 Jun 2022 10:31:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343489AbiFIObG (ORCPT ); Thu, 9 Jun 2022 10:31:06 -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 7E52E1FBF7B; Thu, 9 Jun 2022 07:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654785056; x=1686321056; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=KcVpOMqtcK0GLgko7LK59DZwvEdtoQYB3VprnfPBpDI=; b=fZNDrVuVsgROABYZMs5UXWt6sSamwsGEuORSLwijUJgDKvAqAYsyx657 qHNPRqn/sf4m7TazY1wy9dZqlP399tUSIkWzOpH49S5Eyar0J9FTzc3vS 3Wl0N7pgtegP6CAgOGehQxHrIZWgbSdgKoVBwDfmm4gcDJVvPH96oe2Ov w=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 09 Jun 2022 07:30:56 -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; 09 Jun 2022 07:30:56 -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; Thu, 9 Jun 2022 07:30:55 -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; Thu, 9 Jun 2022 07:30:49 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH v4 2/2] ASoC: qcom: soundwire: Enable software clock gating requirement flag Date: Thu, 9 Jun 2022 20:00:23 +0530 Message-ID: <1654785023-1667-3-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1654785023-1667-1-git-send-email-quic_srivasam@quicinc.com> References: <1654785023-1667-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 8e163da..b1bdf17 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