RE: [PATCH 2/4] scsi: ufs: Make ufshcd_poll() complain about unsupported arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> The ufshcd_poll() implementation does not support queue_num ==
> UFSHCD_POLL_FROM_INTERRUPT_CONTEXT in MCQ mode. Hence complain
> if queue_num == UFSHCD_POLL_FROM_INTERRUPT_CONTEXT in MCQ mode.
> 

Fixes tag - is it ed975065c31c ?

Thanks,
Avri

> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
> ---
>  drivers/ufs/core/ufshcd.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index 62c8575f2c67..66198eee51b0 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -5617,6 +5617,7 @@ static int ufshcd_poll(struct Scsi_Host *shost,
> unsigned int queue_num)
>         struct ufs_hw_queue *hwq;
> 
>         if (is_mcq_enabled(hba)) {
> +               WARN_ON_ONCE(queue_num ==
> UFSHCD_POLL_FROM_INTERRUPT_CONTEXT);
>                 hwq = &hba->uhq[queue_num];
> 
>                 return ufshcd_mcq_poll_cqe_lock(hba, hwq);





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux