Skip to content

Commit b53eb9a

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: ufs: core: Rename the MASK_TRANSFER_REQUESTS_SLOTS constant
Rename this constant to prepare for the introduction of the MASK_TRANSFER_REQUESTS_SLOTS_MCQ constant. The acronym "SDB" stands for "single doorbell" (mode). Reviewed-by: Peter Wang <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 92c0b10 commit b53eb9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2401,7 +2401,7 @@ static inline int ufshcd_hba_capabilities(struct ufs_hba *hba)
24012401
hba->capabilities &= ~MASK_64_ADDRESSING_SUPPORT;
24022402

24032403
/* nutrs and nutmrs are 0 based values */
2404-
hba->nutrs = (hba->capabilities & MASK_TRANSFER_REQUESTS_SLOTS) + 1;
2404+
hba->nutrs = (hba->capabilities & MASK_TRANSFER_REQUESTS_SLOTS_SDB) + 1;
24052405
hba->nutmrs =
24062406
((hba->capabilities & MASK_TASK_MANAGEMENT_REQUEST_SLOTS) >> 16) + 1;
24072407
hba->reserved_slot = hba->nutrs - 1;

include/ufs/ufshci.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ enum {
6767

6868
/* Controller capability masks */
6969
enum {
70-
MASK_TRANSFER_REQUESTS_SLOTS = 0x0000001F,
70+
MASK_TRANSFER_REQUESTS_SLOTS_SDB = 0x0000001F,
7171
MASK_NUMBER_OUTSTANDING_RTT = 0x0000FF00,
7272
MASK_TASK_MANAGEMENT_REQUEST_SLOTS = 0x00070000,
7373
MASK_EHSLUTRD_SUPPORTED = 0x00400000,

0 commit comments

Comments
 (0)