Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp902892pxp; Wed, 16 Mar 2022 20:44:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSS6O3DqtwBAp6qx9SuXwzRxBUEDC2awqhckRPXhxbZr/4gY0IbfrDQpkxr5eGNmCrclpO X-Received: by 2002:a17:90a:560a:b0:1bc:72e7:3c13 with SMTP id r10-20020a17090a560a00b001bc72e73c13mr13342745pjf.246.1647488642399; Wed, 16 Mar 2022 20:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647488642; cv=none; d=google.com; s=arc-20160816; b=kQdn58N7XCSCSLoXqWb3koKkwC30GvE882oDmIX55NBetBsWRWRwGztrCrDz7HVYVj TEk7gMDQIqrRC1mT0h3EoG/MS9k2NX9fm+Q3XHLfalaeuvhn2OV2xT6FDQTxEPg8fZbS S8kEZ/rBOk5RXOsksBFCPhm9zwTIIy8fIIqG5RIkFxQ7MoOrwzMh+3xR0CJu/Wd6Pkmq lU6Ntmw9e7qZZtHE49QPlylSgwzwo61E6vwiftbtYIGnH6Odp8J7wlcXBi6FRYQHA0gK NUCcZPGYazMkFrV1hL4iFRb5mqjmGdX63WD3oulyPcsZwVXWozgZFTkc/STTPeX9mIJa afhg== 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=79o5gBeuclgkLLR0bESNlJlpxKJpRWFQRiAB8i6yArY=; b=Ft+33P+o0xaM6VsGLbE4NsU6rqrwMz6+Q8AlQCizyoxZiQhdw5ZzLBoCJZSF4HToOy /RT0HLcDufrZ/xk/bGHdESr+oYrHqxlf+JkCAuHfnfpo9gpcH0PV2mmnVNG9asQ8snNd Js/DTju0d3bhAdRPfXGEUAACavHkbAbRTFNjQhGBjomVaGSo6tKuQmZFER7zcavONckI rvxYadJK9awSruhsd9wzJFL1tX+cOPgpVz6PMWzGvDE3oG+R+BmvLLACCELjzTr9tIR4 1exHZRyMEG0ETzrGkl2OiImJv+uVyjL5bEtfXs9FfCB0aTREkKyFhw2AtCOZck/9OAim 5eLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=KxaJGYj0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k13-20020a056a00134d00b004f7550f7f55si4145165pfu.225.2022.03.16.20.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:44:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=KxaJGYj0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 41CE56C1FD; Wed, 16 Mar 2022 20:36:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349400AbiCOOrP (ORCPT + 99 others); Tue, 15 Mar 2022 10:47:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238359AbiCOOrN (ORCPT ); Tue, 15 Mar 2022 10:47:13 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37BAD5549B; Tue, 15 Mar 2022 07:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1647355561; x=1678891561; h=from:to:cc:subject:date:message-id:mime-version; bh=79o5gBeuclgkLLR0bESNlJlpxKJpRWFQRiAB8i6yArY=; b=KxaJGYj0aijlyQ7wPQWA+W7/YDJ94FmWhDxqNaTDWz+FXiWhrWYTNyBA i8AEvPGVC15+J62yYSvfhg2FH8YRwm/upr/+xyKxlod21QoSJzZ0vurkk bFUJ6JlkOlpYDzAZyisTA0H7ev7a+FItIhCOkUNWxKEvlYDF4DOEDHg7q k=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 15 Mar 2022 07:46:01 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 07:46:00 -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.15; Tue, 15 Mar 2022 07:45:53 -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; Tue, 15 Mar 2022 07:45:47 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH] ASoC: codecs: Fix misplaced lpass_macro_pds_exit call Date: Tue, 15 Mar 2022 20:15:31 +0530 Message-ID: <1647355531-4150-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-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Update power domains exit function calling from runtime resume to remove function which was wrongly placed and causing crash in device suspend and resume. Fixes: 9e3d83c52844 ("ASoC: codecs: Add power domains support in digital macro codecs") Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu --- sound/soc/codecs/lpass-tx-macro.c | 4 ++-- sound/soc/codecs/lpass-va-macro.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c index b492d598..714a411 100644 --- a/sound/soc/codecs/lpass-tx-macro.c +++ b/sound/soc/codecs/lpass-tx-macro.c @@ -1920,6 +1920,8 @@ static int tx_macro_remove(struct platform_device *pdev) clk_disable_unprepare(tx->npl); clk_disable_unprepare(tx->fsgen); + lpass_macro_pds_exit(tx->pds); + return 0; } @@ -1964,8 +1966,6 @@ static int __maybe_unused tx_macro_runtime_resume(struct device *dev) regcache_sync(tx->regmap); tx->reset_swr = true; - lpass_macro_pds_exit(tx->pds); - return 0; err_fsgen: clk_disable_unprepare(tx->npl); diff --git a/sound/soc/codecs/lpass-va-macro.c b/sound/soc/codecs/lpass-va-macro.c index 300f4f6..f3cb596 100644 --- a/sound/soc/codecs/lpass-va-macro.c +++ b/sound/soc/codecs/lpass-va-macro.c @@ -1503,6 +1503,8 @@ static int va_macro_remove(struct platform_device *pdev) clk_disable_unprepare(va->dcodec); clk_disable_unprepare(va->macro); + lpass_macro_pds_exit(va->pds); + return 0; } @@ -1532,8 +1534,6 @@ static int __maybe_unused va_macro_runtime_resume(struct device *dev) regcache_cache_only(va->regmap, false); regcache_sync(va->regmap); - lpass_macro_pds_exit(va->pds); - return 0; } -- 2.7.4