Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp329951pxb; Fri, 3 Sep 2021 03:08:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS3Cxp4g+YPZR7C5rHB3FHDLCJ+I1prFPYP+Ufr0JjSFzY0/n2U1WXDox/C670GGzHooPa X-Received: by 2002:a17:906:3983:: with SMTP id h3mr3200345eje.249.1630663704869; Fri, 03 Sep 2021 03:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630663704; cv=none; d=google.com; s=arc-20160816; b=VA+sz7jXpdhfZ/q/E5yJe/hinYW9pTl9OVp50oHXIXU2vYsHU4aApEdIlMdvP53BJa Bgd7uoMzFM/HJNzDhWyAnRHbH0AJSPpDhg9qKEmtRcf+HXrCx7L2wGAJnaxFjcaH3LpO 4O9qRJX7xZ9Wayre6GVRC2YZ3Q3XB25afsKVeB9yNvUDUnzCImwG99ku6ijHM5/xU8ON eDXUqkKV12S1kcOgxQVDFUKSJy0s41eq6BFgRNViDNyJacIP7nZ9ut498RZ6U4VqWN5G lAb30MsVgndy0hoQNl5Y4VftOp2UpfmizxUClShmlnHhYecf7JHhhLPHiyguld4GWdbj mZmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=bcI92IfWvkqEpmqf6n3xiJ0u7hLOLwmK0IWLJzP+5Ms=; b=oiWEHQb4fMiqrMCgfReG1AHdKg5UydcYgaKR5vbN4eC2m7blH8s1BOg3LxnkqDzsbX j0nVxFQr7iNJmM1YCdrkpnCo14gNiSBE52M8kl+wMndc9GeWkodlDgcSaUOibendeN++ 2jXJxqTEXVB0GU1lbOQ1lpeBA3EYGG8NFho/8bmh3wKIKMy3xNiRX/XBPsu/qGVg/6EG QZXiVXQ0tJytM7XZ0A2Okg2bCu0ku2jInagGwpFa8w+A0/15x9xi4tyLTEdjA2/Zmpo/ HF5atHFzrwaweyhl8q4b0kWcMxoM8FJWDcfujS9uJKNiQoZp2r1qHmr5KGQN3ylMZrLK WcvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=lk3Jlhnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si5337569edd.2.2021.09.03.03.07.54; Fri, 03 Sep 2021 03:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=lk3Jlhnq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349029AbhICKGU (ORCPT + 99 others); Fri, 3 Sep 2021 06:06:20 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:52459 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349038AbhICKFw (ORCPT ); Fri, 3 Sep 2021 06:05:52 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1630663492; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=bcI92IfWvkqEpmqf6n3xiJ0u7hLOLwmK0IWLJzP+5Ms=; b=lk3JlhnqI0w+85uuSQ9cDYL27crqfjrYRUgGynKWaVdZZiDH0NN6AHqX5jsGpxQLfOdv1vFJ U2/OcIeiEPPg8OnoMpkLScPAmtsAWi+oldcb25N7t2qi3qQrE+TUCVNALnSbeEMU7WE4pqgG d8KhL27sV7OjIx/w+yLIm4sr6sA= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 6131f2b3cd680e8969532512 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 03 Sep 2021 10:02:27 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 3FAD8C4361A; Fri, 3 Sep 2021 10:02:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld210.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1BFFAC4360D; Fri, 3 Sep 2021 10:02:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 1BFFAC4360D Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Srinivasa Rao Mandadapu To: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org Cc: Srinivasa Rao Mandadapu Subject: [PATCH] ASoC: qcom: lpass-platform: Reset irq clear reg post handling interrupts Date: Fri, 3 Sep 2021 15:31:53 +0530 Message-Id: <20210903100153.9137-1-srivasam@codeaurora.org> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update interrupt clear register with reset value after addressing all interrupts. This is to fix playback or capture hanging issue in simultaneous playback and capture usecase. Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-platform.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c index f9df76d37858..1a0a4b0b1a03 100644 --- a/sound/soc/qcom/lpass-platform.c +++ b/sound/soc/qcom/lpass-platform.c @@ -749,6 +749,12 @@ static irqreturn_t lpass_platform_lpaif_irq(int irq, void *data) } } + rv = regmap_write(drvdata->lpaif_map, LPAIF_IRQCLEAR_REG(v, LPAIF_IRQ_PORT_HOST), 0x0); + if (rv) { + pr_err("error writing to irqstat reg: %d\n", rv); + return IRQ_NONE; + } + return IRQ_HANDLED; } -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.