Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3543660rwi; Wed, 12 Oct 2022 03:41:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6zdvlNx+ZskQIukwPVhqxoVwvOIBhjILKD3nUEuMH9TtvuaEftioEgfpAsTdPzplhK0rj4 X-Received: by 2002:a17:906:7952:b0:787:a14d:65a7 with SMTP id l18-20020a170906795200b00787a14d65a7mr22823024ejo.108.1665571299913; Wed, 12 Oct 2022 03:41:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665571299; cv=none; d=google.com; s=arc-20160816; b=GJee1Fm49kIcVFyJvegLUTDwi/eD04/uitfi+rO439RHzghL3qlAAb6ffSZ406p7Wo irPYn1W3G2LaWkemkXAsBhCvkdeSENA8wc3ZZ3Tz9Unc/Sv7+wfQNv7Xvxzne7ZM8B1I NOYRZmywEIr1RBsT0ohafsLxVUKvCUnNbwfYfYdjJ/VHdfezZcDTa3pSPuCRvYBxCkSY w3qbipQ1Tf6lNJzdJowq94UHW2wc9zj2xICS+R69mVkty9MRGJamk7mTPFCumLPi5aWl M/j1BUt26BRvHLcJ+PJb8Rd5tnS8wKxJJ3TjruNiGAwmLi+KAxcA0JWTfoC69W8C+JNy PDuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=jctT1Pwbyirimd7TO/R3ucHPbd2O7TZgkHQcGAnQzcE=; b=ugkt3EdSX0dtNlCYAFiO69QzqUNDBr0fegQZYCAJ/YWQFoh6XpVim6703UxAKrQmuA P9MsT1ZKD13RpFU6bi4aXADUzDyLpKV/e4m1UafuGk8D3OqwgcYCZFMymoVGxYL3bTcR Iejz1GB2itylmaN1vk2zObJ4TJYNKHalJCMCUXb9cij+fQUnXwY+1kguwE5Z6FDrfL60 mKcUQbMokSIJlKBW4HByG2a0JqL7Qzplr4JvD7MmGL9BoRUypVV2ZDDjaf9vquFbbTHx TCGK71p7iNIGjZNghMzHPUzxTnoxZxBdKljsFu7rX5TZzM/VSm6nuYfbW4GkbCk1y576 fSFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mDaEmnru; 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 dp14-20020a170906c14e00b0078d5d4a6b64si14741938ejc.662.2022.10.12.03.41.04; Wed, 12 Oct 2022 03:41:39 -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=qcppdkim1 header.b=mDaEmnru; 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 S229978AbiJLKP4 (ORCPT + 99 others); Wed, 12 Oct 2022 06:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbiJLKPX (ORCPT ); Wed, 12 Oct 2022 06:15:23 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48497A4B80; Wed, 12 Oct 2022 03:13:59 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29C800fG009831; Wed, 12 Oct 2022 10:12:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=jctT1Pwbyirimd7TO/R3ucHPbd2O7TZgkHQcGAnQzcE=; b=mDaEmnruhCBRO4sHkUCIUrOCSHsVhPuVkrvmyEUKEbDcfEVIGTi5xhmSlYOceEYceCas ivYwIHs/M0YvxD/SqyLE2iRniYDlR0JmFxe5lmcU3m5ACXOHwRNqkZE4ZNc0yj6ew600 mIlcoihpnMbnqZB4sKIDGmFROPXyEJFCwKQy5mGdmGwk0M7jJSngUdkBzxB3S34rHhK6 gB+SAeU+YFQ4uapWoq4s1/XQ18jkDWDtnKbBlTxYaLOVqNMeXWsIxV940HyrxBG4QoRf To5UtMSNY7JoMKV0LUFJKkygJVt28BqIr3CrwcdnRauPvBozSFkszsFqIgnyUEwWq//h YQ== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3k5kar1bh8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 10:12:59 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 29CACwbR030429 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 12 Oct 2022 10:12:58 GMT 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.29; Wed, 12 Oct 2022 03:12:52 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu Subject: [PATCH] ASoC: qcom: lpass-cpu: mark HDMI TX registers as volatile Date: Wed, 12 Oct 2022 15:42:40 +0530 Message-ID: <1665569560-28943-1-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 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-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: anEvL3smAJq0G8EM2dcP5k2_E3FANk6p X-Proofpoint-GUID: anEvL3smAJq0G8EM2dcP5k2_E3FANk6p X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-12_04,2022-10-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1011 phishscore=0 suspectscore=0 adultscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210120066 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 From: Srinivasa Rao Mandadapu Update HDMI volatile registers list as DMA, Channel Selection registers , vbit control registers are being reflected by hardware DP port disconnection. This update is required to fix no display and no sound issue observed after reconnecting TAMA/SANWA DP cables. Once DP cable is unplugged, DMA control registers are being reset by hardware, however at second plugin, new dma control values does not updated to the dma hardware registers since new register value and cached values at the time of first plugin are same. Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 8a56f38..99a3b44 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -782,10 +782,18 @@ static bool lpass_hdmi_regmap_volatile(struct device *dev, unsigned int reg) return true; if (reg == LPASS_HDMI_TX_LEGACY_ADDR(v)) return true; + if (reg == LPASS_HDMI_TX_VBIT_CTL_ADDR(v)) + return true; for (i = 0; i < v->hdmi_rdma_channels; ++i) { if (reg == LPAIF_HDMI_RDMACURR_REG(v, i)) return true; + if (reg == LPASS_HDMI_TX_DMA_ADDR(v, i)) + return true; + if (reg == LPASS_HDMI_TX_CH_LSB_ADDR(v, i)) + return true; + if (reg == LPASS_HDMI_TX_CH_MSB_ADDR(v, i)) + return true; } return false; } -- 2.7.4