Skip to contentSkip to conversation

scsi: ufs: Remove wlun_dev_to_hba()

PATCH Applied Keoseong Park 4 participants 5 messages Feb 15, 2022 – Feb 28, 2022 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20220215114002epcms2p1eb4e53507c96e0f24770af16aedcf5c6@epcms2p1

#1 lore raw

PATCH 1/1 scsi: ufs: Remove wlun_dev_to_hba()

Commit edc0596cc04b ("scsi: ufs: core: Stop clearing UNIT ATTENTIONS") removed all callers of wlun_dev_to_hba(). Hence also remove the macro itself.

---
 drivers/scsi/ufs/ufshcd.c | 2 --
 1 file changed, 2 deletions(-)
drivers/scsi/ufs/ufshcd.c +0 -2
index 41d85b69fa50..1243d73d669b 100644
@@ -83,8 +83,6 @@
 /* Polling time to wait for fDeviceInit */
 #define FDEVICEINIT_COMPL_TIMEOUT 1500 /* millisecs */
 
-#define wlun_dev_to_hba(dv) shost_priv(to_scsi_device(dv)->host)
-
 #define ufshcd_toggle_vreg(_dev, _vreg, _on)				\
 	({                                                              \
 		int _ret;                                               \
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#2 lore raw
Quoted 12 lines

-----Original Message-----
From: Keoseong Park [mailto:[email protected]]
Sent: Tuesday, February 15, 2022 5:10 PM
To: ALIM AKHTAR <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]
Subject: [PATCH] scsi: ufs: Remove wlun_dev_to_hba()

Quoted 6 lines

Commit edc0596cc04b ("scsi: ufs: core: Stop clearing UNIT ATTENTIONS") removed all callers of wlun_dev_to_hba(). Hence also remove the macro itself.

---

Thanks!

Quoted 19 lines

drivers/scsi/ufs/ufshcd.c | 2 --

1 file changed, 2 deletions(-)
drivers/scsi/ufs/ufshcd.c index renamed from drivers/scsi/ufs/ufshcd.c +0 -0

41d85b69fa50..1243d73d669b 100644

drivers/scsi/ufs/ufshcd.c +0 -0
@@ -83,8 +83,6 @@
 /* Polling time to wait for fDeviceInit */  #define

FDEVICEINIT_COMPL_TIMEOUT 1500 /* millisecs */

drivers/scsi/ufs/ufshcd.c +0 -2
-#define wlun_dev_to_hba(dv) shost_priv(to_scsi_device(dv)->host)
-
#define ufshcd_toggle_vreg(_dev, _vreg, _on)
	\
	({                                                              \
		int _ret;                                               \

--
2.17.1

#4 lore raw
In reply to Keoseong Park

Keoseong,

Quoted 3 lines

Commit edc0596cc04b ("scsi: ufs: core: Stop clearing UNIT ATTENTIONS") removed all callers of wlun_dev_to_hba(). Hence also remove the macro itself.

Applied to 5.18/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering