Skip to contentSkip to conversation

two UFS changes

PATCH Applied Bean Huo 4 participants 7 messages Dec 7, 2020 – Dec 9, 2020 SCSI

lore
Share & tools
lore

Bean Huo

author
#0 lore raw

cover two UFS changes

From: Bean Huo <[email protected]>

Bean Huo (2):
scsi: ufs: Remove an unused macro definition POWER_DESC_MAX_SIZE
scsi: ufs: Fix wrong print message in dev_err()

 drivers/scsi/ufs/ufs.h    | 1 -
 drivers/scsi/ufs/ufshcd.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 1/2 scsi: ufs: Remove an unused macro definition POWER_DESC_MAX_SIZE

From: Bean Huo <[email protected]>

No user uses POWER_DESC_MAX_SIZE, remove it.

---
 drivers/scsi/ufs/ufs.h | 1 -
 1 file changed, 1 deletion(-)
drivers/scsi/ufs/ufs.h +0 -1
index 311d5f7a024d..527ba5c00097 100644
@@ -330,7 +330,6 @@ enum {
 	UFS_DEV_WRITE_BOOSTER_SUP	= BIT(8),
 };
 
-#define POWER_DESC_MAX_SIZE			0x62
 #define POWER_DESC_MAX_ACTV_ICC_LVLS		16
 
 /* Attribute  bActiveICCLevel parameter bit masks definitions */
Signature · 1 line
2.17.1
author
#3 lore raw

PATCH 2/2 scsi: ufs: Fix wrong print message in dev_err()

In reply to Bean Huo

From: Bean Huo <[email protected]>

Change dev_err() print message from "dme-reset" to "dme_enable" in function ufshcd_dme_enable().

---
 drivers/scsi/ufs/ufshcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/ufs/ufshcd.c +1 -1
index 5b2219e44743..f8f5eddad506 100644
@@ -3645,7 +3645,7 @@ static int ufshcd_dme_enable(struct ufs_hba *hba)
 	ret = ufshcd_send_uic_cmd(hba, &uic_cmd);
 	if (ret)
 		dev_err(hba->dev,
-			"dme-reset: error code %d\n", ret);
+			"dme-enable: error code %d\n", ret);
 
 	return ret;
 }
Signature · 1 line
2.17.1
Acked-by on the v1 series
#5 lore raw
In reply to Bean Huo

Hi Bean,

Quoted 15 lines

-----Original Message-----
From: Bean Huo <[email protected]>
Sent: 08 December 2020 00:32
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]
Subject: [PATCH 0/2] two UFS changes

From: Bean Huo <[email protected]>

Quoted 8 lines

Bean Huo (2):
scsi: ufs: Remove an unused macro definition POWER_DESC_MAX_SIZE
scsi: ufs: Fix wrong print message in dev_err()

 drivers/scsi/ufs/ufs.h    | 1 -
 drivers/scsi/ufs/ufshcd.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

Thanks!

Quoted 2 lines

--
2.17.1

#6 lore raw
In reply to Bean Huo

Bean,

Quoted 3 lines

Bean Huo (2):
scsi: ufs: Remove an unused macro definition POWER_DESC_MAX_SIZE
scsi: ufs: Fix wrong print message in dev_err()

Applied to 5.11/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering