linux/drivers/ufs/core
Bart Van Assche 02e0170c4d scsi: ufs: core: Fix the polling implementation
[ Upstream commit ee8c88cab4 ]

Fix the following issues in ufshcd_poll():

 - If polling succeeds, return a positive value.

 - Do not complete polling requests from interrupt context because the
   block layer expects these requests to be completed from thread
   context. From block/bio.c:

     If REQ_ALLOC_CACHE is set, the final put of the bio MUST be done from
     process context, not hard/soft IRQ.

Fixes: eaab9b5730 ("scsi: ufs: Implement polling support")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20221118233717.441298-1-bvanassche@acm.org
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:36 +01:00
..
Kconfig
Makefile
ufs_bsg.c
ufs_bsg.h
ufs-debugfs.c
ufs-debugfs.h
ufs-fault-injection.c
ufs-fault-injection.h
ufs-hwmon.c
ufs-sysfs.c scsi: ufs: core: Print UFSHCD capabilities in controller's sysfs node 2022-09-06 22:18:06 -04:00
ufs-sysfs.h
ufshcd-crypto.c
ufshcd-crypto.h
ufshcd-priv.h scsi: ufs: core: Remove redundant function definitions from ufshcd.h 2022-09-25 12:50:44 -04:00
ufshcd.c scsi: ufs: core: Fix the polling implementation 2022-12-31 13:32:36 +01:00
ufshpb.c scsi: ufs: core: Fix typo in comment 2022-10-22 03:29:32 +00:00
ufshpb.h