mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
ANDROID: Revert "FROMLIST: scsi: ufs: Fix a deadlock in the error handler"
Revert commit d56a3389b8 ("FROMLIST: scsi: ufs: Fix a deadlock in the error
handler") in preparation of switching to the FROMGIT solution.
Bug: 204438323
Change-Id: Ia9ae90af8eb99acf323d04504fa990163a4162cc
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
@@ -2956,7 +2956,12 @@ static int ufshcd_exec_dev_cmd(struct ufs_hba *hba,
|
||||
|
||||
down_read(&hba->clk_scaling_lock);
|
||||
|
||||
req = blk_mq_alloc_request(q, REQ_OP_DRV_OUT, BLK_MQ_REQ_RESERVED);
|
||||
/*
|
||||
* Get free slot, sleep if slots are unavailable.
|
||||
* Even though we use wait_event() which sleeps indefinitely,
|
||||
* the maximum wait time is bounded by SCSI request timeout.
|
||||
*/
|
||||
req = blk_get_request(q, REQ_OP_DRV_OUT, 0);
|
||||
if (IS_ERR(req)) {
|
||||
err = PTR_ERR(req);
|
||||
goto out_unlock;
|
||||
@@ -8185,8 +8190,7 @@ static struct scsi_host_template ufshcd_driver_template = {
|
||||
.this_id = -1,
|
||||
.sg_tablesize = SG_ALL,
|
||||
.cmd_per_lun = UFSHCD_CMD_PER_LUN,
|
||||
.can_queue = UFSHCD_CAN_QUEUE - 1,
|
||||
.reserved_tags = 1,
|
||||
.can_queue = UFSHCD_CAN_QUEUE,
|
||||
.max_segment_size = PRDT_DATA_BYTE_COUNT_MAX,
|
||||
.max_host_blocked = 1,
|
||||
.track_queue_depth = 1,
|
||||
@@ -9555,8 +9559,8 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq)
|
||||
/* Configure LRB */
|
||||
ufshcd_host_memory_configure(hba);
|
||||
|
||||
host->can_queue = hba->nutrs - 1;
|
||||
host->cmd_per_lun = hba->nutrs - 1;
|
||||
host->can_queue = hba->nutrs;
|
||||
host->cmd_per_lun = hba->nutrs;
|
||||
host->max_id = UFSHCD_MAX_ID;
|
||||
host->max_lun = UFS_MAX_LUNS;
|
||||
host->max_channel = UFSHCD_MAX_CHANNEL;
|
||||
|
||||
Reference in New Issue
Block a user