forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scsi: ufs: retry failed query flag requests
UFS flag query requests may fail sometimes due to timeouts etc. Add a wrapper function to retry up to 10 times in case of such failure, similar to retries being made for attribute queries. Reviewed-by: Dolev Raviv <[email protected]> Signed-off-by: Gilad Broner <[email protected]> Signed-off-by: Yaniv Gardi <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
- Loading branch information
1 parent
53c12d0
commit dc3c8d3
Showing
2 changed files
with
41 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
* | ||
* This code is based on drivers/scsi/ufs/ufshcd.h | ||
* Copyright (C) 2011-2013 Samsung India Software Operations | ||
* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. | ||
* | ||
* Authors: | ||
* Santosh Yaraganavi <[email protected]> | ||
|
@@ -681,6 +682,9 @@ static inline int ufshcd_dme_peer_get(struct ufs_hba *hba, | |
return ufshcd_dme_get_attr(hba, attr_sel, mib_val, DME_PEER); | ||
} | ||
|
||
/* Expose Query-Request API */ | ||
int ufshcd_query_flag(struct ufs_hba *hba, enum query_opcode opcode, | ||
enum flag_idn idn, bool *flag_res); | ||
int ufshcd_hold(struct ufs_hba *hba, bool async); | ||
void ufshcd_release(struct ufs_hba *hba); | ||
|
||
|