[bug report] scsi: ufs: host: mediatek: Set IRQ affinity policy for MCQ mode

Peter Wang (王信友) peter.wang at mediatek.com
Sun Aug 3 22:59:17 PDT 2025


On Fri, 2025-08-01 at 16:18 +0300, Dan Carpenter wrote:
> 
> 
>     821         if (q_index > nr) {
> 
> This really looks like it should be ">= nr" instead of "> nr" but I'm
> not
> certain enough to send a patch for it.  Could you take a look?
> 
>     822                 dev_err(hba->dev, "hwq index %d exceed %d\n",
>     823                         q_index, nr);
>     824                 return MTK_MCQ_INVALID_IRQ;
>     825         }
>     826
> --> 827         return host->mcq_intr_info[q_index].irq;
>     828 }
> 
> regards,
> dan carpenter

Hi Dan,

Yes, this is indeed a coding defect that needs to be fixed.
I will correct it.

Thanks.
Peter



More information about the Linux-mediatek mailing list