diff mbox series

scsi: ufs: Increase the START STOP UNIT timeout from 1 s to 10 s

Message ID 20230411001132.1239225-1-bvanassche@acm.org
State Superseded
Headers show
Series scsi: ufs: Increase the START STOP UNIT timeout from 1 s to 10 s | expand

Commit Message

Bart Van Assche April 11, 2023, 12:11 a.m. UTC
One UFS vendor asked to increase the UFS timeout from 1 s to 3 s.
Another UFS vendor asked to increase the UFS timeout from 1 s to 10 s.
Hence this patch that increases the UFS timeout to 10 s. This patch can
cause the total timeout to exceed 20 s, the Android shutdown timeout.
This is fine since the loop around ufshcd_execute_start_stop() exists to
deal with unit attentions and because unit attentions are reported
quickly.

Fixes: dcd5b7637c6d ("scsi: ufs: Reduce the START STOP UNIT timeout")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 drivers/ufs/core/ufshcd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Adrian Hunter April 12, 2023, 5:24 p.m. UTC | #1
On 12/04/23 19:34, Bart Van Assche wrote:
> On 4/11/23 11:31, Adrian Hunter wrote:
>> It would be better not to assume current stable trees are the only
>> consumers of fixes.  Presumably adding the extra Fixes tag does no
>> harm.
> 
> Hi Adrian,
> 
> The convention is to add a reference to the most recent patch that got fixed in the patch description. Anyone who backports fixes is assumed to follow the chain of patches transitively that is created by Fixes: tags.

Wouldn't that only work if commit dcd5b7637c6d had a Fixes tag too.
diff mbox series

Patch

diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index 03c47f9a2750..8363a1667feb 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -9181,7 +9181,8 @@  static int ufshcd_execute_start_stop(struct scsi_device *sdev,
 	};
 
 	return scsi_execute_cmd(sdev, cdb, REQ_OP_DRV_IN, /*buffer=*/NULL,
-			/*bufflen=*/0, /*timeout=*/HZ, /*retries=*/0, &args);
+			/*bufflen=*/0, /*timeout=*/10 * HZ, /*retries=*/0,
+			&args);
 }
 
 /**