From: Bart Van Assche Date: Mon, 29 May 2023 20:26:38 +0000 (-0700) Subject: scsi: ufs: Conditionally enable the BLK_MQ_F_BLOCKING flag X-Git-Tag: v6.6.17~4407^2~51^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c03c8e9b729a1ca2131a187233f8836a66a277b;p=platform%2Fkernel%2Flinux-rpi.git scsi: ufs: Conditionally enable the BLK_MQ_F_BLOCKING flag Prepare for adding code in ufshcd_queuecommand() that may sleep. Acked-by: Adrian Hunter Signed-off-by: Bart Van Assche Link: https://lore.kernel.org/r/20230529202640.11883-4-bvanassche@acm.org Reviewed-by: Bean Huo Signed-off-by: Martin K. Petersen --- diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 17d7bb875fee..e093ce33887c 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -10218,6 +10218,7 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) host->max_channel = UFSHCD_MAX_CHANNEL; host->unique_id = host->host_no; host->max_cmd_len = UFS_CDB_SIZE; + host->queuecommand_may_block = !!(hba->caps & UFSHCD_CAP_CLK_GATING); hba->max_pwr_info.is_valid = false;