[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7f0694df-05e5-481c-b1d6-1d6cf4267355@acm.org>
Date: Mon, 7 Apr 2025 12:44:23 -0700
From: Bart Van Assche <bvanassche@....org>
To: Neil Armstrong <neil.armstrong@...aro.org>,
Alim Akhtar <alim.akhtar@...sung.com>, Avri Altman <avri.altman@....com>,
"James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
linux-arm-msm@...r.kernel.org, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH RFT v3 3/3] ufs: core: delegate the interrupt service
routine to a threaded irq handler
On 4/7/25 3:17 AM, Neil Armstrong wrote:
> +static irqreturn_t ufshcd_intr(int irq, void *__hba)
> +{
> + struct ufs_hba *hba = __hba;
> +
> + /* Move interrupt handling to thread when MCQ & ESI are not enabled */
> + if (!hba->mcq_enabled || !hba->mcq_esi_enabled)
> + return IRQ_WAKE_THREAD;
> +
> + /* Directly handle interrupts since MCQ ESI handlers does the hard job */
> + return ufshcd_sl_intr(hba, ufshcd_readl(hba, REG_INTERRUPT_STATUS) &
> + ufshcd_readl(hba, REG_INTERRUPT_ENABLE));
> +}
Reviewed-by: Bart Van Assche <bvanassche@....org>
Powered by blists - more mailing lists