Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp564723pxb; Wed, 8 Sep 2021 07:28:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/3YZwYs9N0G796X4WWeQL4kbz3vP4B/2QfZLpEOR1kKNQTstWBr8jCku55DNzsHwTHDL8 X-Received: by 2002:a05:6402:17c8:: with SMTP id s8mr1809990edy.130.1631111290588; Wed, 08 Sep 2021 07:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631111290; cv=none; d=google.com; s=arc-20160816; b=N3T5Y6mHNF6GwZloJ0coD5E/pAYk/bnVu93E0TE710dDsvV+bMgaK6BxcvD0fv0aFA /Q6IrktZUqolVb3YaYvghYC9lLhZ76uwOgmnHU8+mF8ERhgvIgvmoc9b7UacgElT5+YQ ERkvCybHRrhakr5fgN6Ny4+8VyAnRJ0fM7GGH221LipLl/nNtrT92POebc1zPrMDLObp z5VECrRNkIDuF2/cXWP5li3KgnXkKBXPetkeMhK5iZPFaHJChuRPnt/xSacbU7oca8si o+jyuFFrjfmhFMpeQFOuVCR3FCvBlr4CXNQzrQkXWf4AXdNZEGpwkGUK3AjKnrTCdwsT 0daw== 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=C6lHs67nTzd74F8ZbiUGwTy6nz9NFd346v1mgtK8fzM=; b=rwiuTyXNWL4zt2AI++I/wIQAmGjE4rEmyrA1rtw+0l0yVvAluCXR0bdD4KBaWNK/XE rR3tETR4Ab9jVJLrQZV+CQxOL30wbuNv9K7G/cep4ZOUaMouNVYyU1LpIgLAX/hUJ3ko zp7teF6ZuxOOtE9rhLOvThc9UE8726ucZDbvYYvpVC2dbTODOohgJPlMp8KIxnbLH6+w eraYYRlFGyhRnYY/a16xijkBXGzgz/QPMLa3T5a19EgrHtcdBUOqBiU31hB6k1ELT4jP wrDfoc0pEGe62KWW8AdQLwcB3hhoez1hx9UL1PacVlEPTT1QJyZozovnu8kXj5FVUH2W po9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=r5ohkV5L; 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 v10si2156086ejy.710.2021.09.08.07.27.41; Wed, 08 Sep 2021 07:28:10 -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=r5ohkV5L; 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 S1349052AbhIHO1D (ORCPT + 99 others); Wed, 8 Sep 2021 10:27:03 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:12991 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbhIHO1C (ORCPT ); Wed, 8 Sep 2021 10:27:02 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1631111155; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=C6lHs67nTzd74F8ZbiUGwTy6nz9NFd346v1mgtK8fzM=; b=r5ohkV5LfCuGHdsPorhamQK12+rKYx8EcoP2kwQy/yLpYtrI3vajD4hFQ71qoCT9yhUAEjkB iXFNHkJOiOXR3ghYAmWsJa8/zuejCFjqKXyS2if/L5j+s9vakdfPpkrw9b0Nbq5uJP6Vkksd v9oh/+sjUd8rwRliRzfgdHf14dM= 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-west-2.postgun.com with SMTP id 6138c7f2506910c01bec3bda (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 08 Sep 2021 14:25:54 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 71C4CC43618; Wed, 8 Sep 2021 14:25:54 +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 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 51650C4338F; Wed, 8 Sep 2021 14:25:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 51650C4338F 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 v2] ASoC: qcom: lpass-platform: Reset irq clear reg post handling interrupts Date: Wed, 8 Sep 2021 19:55:35 +0530 Message-Id: <20210908142535.31106-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. Fixes: 4f629e4b8705f ("ASoC: qcom: Add ability to handle interrupts per dma channel") Signed-off-by: Srinivasa Rao Mandadapu --- Changes since v1: -- Update comments Header information with fixes tag 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.