]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: ufs: core: Rename the MASK_TRANSFER_REQUESTS_SLOTS constant
authorBart Van Assche <bvanassche@acm.org>
Mon, 8 Jul 2024 21:15:59 +0000 (14:15 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jul 2024 02:19:04 +0000 (22:19 -0400)
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 <peter.wang@mediatek.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240708211716.2827751-5-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c
include/ufs/ufshci.h

index 7957c570a12ac2be2b17f2d76b16e094245d8db8..bfcfbfb648d17026ee5cbcec6b14d74807c9468c 100644 (file)
@@ -2401,7 +2401,7 @@ static inline int ufshcd_hba_capabilities(struct ufs_hba *hba)
                hba->capabilities &= ~MASK_64_ADDRESSING_SUPPORT;
 
        /* nutrs and nutmrs are 0 based values */
-       hba->nutrs = (hba->capabilities & MASK_TRANSFER_REQUESTS_SLOTS) + 1;
+       hba->nutrs = (hba->capabilities & MASK_TRANSFER_REQUESTS_SLOTS_SDB) + 1;
        hba->nutmrs =
        ((hba->capabilities & MASK_TASK_MANAGEMENT_REQUEST_SLOTS) >> 16) + 1;
        hba->reserved_slot = hba->nutrs - 1;
index c50f92bf2e1dfa809f7d9f586028184cf3eb1a9c..8d0cc73537c6f348fed6e4ee6c8756848bfa276a 100644 (file)
@@ -67,7 +67,7 @@ enum {
 
 /* Controller capability masks */
 enum {
-       MASK_TRANSFER_REQUESTS_SLOTS            = 0x0000001F,
+       MASK_TRANSFER_REQUESTS_SLOTS_SDB        = 0x0000001F,
        MASK_NUMBER_OUTSTANDING_RTT             = 0x0000FF00,
        MASK_TASK_MANAGEMENT_REQUEST_SLOTS      = 0x00070000,
        MASK_EHSLUTRD_SUPPORTED                 = 0x00400000,