mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>
Cc: mukesh.savaliya@oss.qualcomm.com, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
Subject: [PATCH 1/2] soc: qcom: geni-se: Split IRQ status clearing from mode selection
Date: Mon, 12 Oct 2026 17:50:21 +0530	[thread overview]
Message-ID: <20261012-cache-se-mode-v1-1-22945ed0da29@oss.qualcomm.com> (raw)
In-Reply-To: <20261012-cache-se-mode-v1-0-22945ed0da29@oss.qualcomm.com>

geni_se_irq_clear() both clears pending interrupt status and updates
mode-dependent event and IRQ enables. Split out the status-only operation
so cached mode selections can discard stale transfer completion status
without disabling GSI event routing.

No functional change.

Signed-off-by: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
---
 drivers/soc/qcom/qcom-geni-se.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c
index 074087c592cc..311046544b4c 100644
--- a/drivers/soc/qcom/qcom-geni-se.c
+++ b/drivers/soc/qcom/qcom-geni-se.c
@@ -342,13 +342,18 @@ static void geni_se_io_init(void __iomem *base)
 	writel_relaxed(FORCE_DEFAULT, base + GENI_FORCE_DEFAULT_REG);
 }
 
-static void geni_se_irq_clear(struct geni_se *se)
+static void geni_se_clear_irq_status(struct geni_se *se)
 {
-	writel_relaxed(0, se->base + SE_GSI_EVENT_EN);
 	writel_relaxed(0xffffffff, se->base + SE_GENI_M_IRQ_CLEAR);
 	writel_relaxed(0xffffffff, se->base + SE_GENI_S_IRQ_CLEAR);
 	writel_relaxed(0xffffffff, se->base + SE_DMA_TX_IRQ_CLR);
 	writel_relaxed(0xffffffff, se->base + SE_DMA_RX_IRQ_CLR);
+}
+
+static void geni_se_irq_clear(struct geni_se *se)
+{
+	writel_relaxed(0, se->base + SE_GSI_EVENT_EN);
+	geni_se_clear_irq_status(se);
 	writel_relaxed(0xffffffff, se->base + SE_IRQ_EN);
 }
 

-- 
2.34.1


  reply	other threads:[~2026-10-12 12:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-12 12:20 [PATCH 0/2] soc: qcom: geni-se: Avoid redundant transfer " Viken Dadhaniya
2026-10-12 12:20 ` Viken Dadhaniya [this message]
2026-10-12 12:20 ` [PATCH 2/2] " Viken Dadhaniya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261012-cache-se-mode-v1-1-22945ed0da29@oss.qualcomm.com \
    --to=viken.dadhaniya@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mukesh.savaliya@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®