Skip to contentSkip to conversation

scsi_transport_sas: Add 22.5 link rate definitions

PATCH Applied Sreekanth Reddy 3 participants 4 messages Oct 18, 2021 – Oct 21, 2021 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi_transport_sas: Add 22.5 link rate definitions

Adding 22.5GBPS link rate definitions,
which are needed for mpi3mr driver.

---
 drivers/scsi/scsi_transport_sas.c | 1 +
 include/scsi/scsi_transport_sas.h | 1 +
 2 files changed, 2 insertions(+)
drivers/scsi/scsi_transport_sas.c +1 -0
index 4a96fb05731d..4ee578b181da 100644
@@ -154,6 +154,7 @@ static struct {
 	{ SAS_LINK_RATE_3_0_GBPS,	"3.0 Gbit" },
 	{ SAS_LINK_RATE_6_0_GBPS,	"6.0 Gbit" },
 	{ SAS_LINK_RATE_12_0_GBPS,	"12.0 Gbit" },
+	{ SAS_LINK_RATE_22_5_GBPS,	"22.5 Gbit" },
 };
 sas_bitfield_name_search(linkspeed, sas_linkspeed_names)
 sas_bitfield_name_set(linkspeed, sas_linkspeed_names)
include/scsi/scsi_transport_sas.h +1 -0
index 05ec927a3c72..0e75b9277c8c 100644
@@ -41,6 +41,7 @@ enum sas_linkrate {
 	SAS_LINK_RATE_G2 = SAS_LINK_RATE_3_0_GBPS,
 	SAS_LINK_RATE_6_0_GBPS = 10,
 	SAS_LINK_RATE_12_0_GBPS = 11,
+	SAS_LINK_RATE_22_5_GBPS = 12,
 	/* These are virtual to the transport class and may never
 	 * be signalled normally since the standard defined field
 	 * is only 4 bits */
Signature · 1 line
2.27.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines · Sreekanth Reddy

Adding 22.5GBPS link rate definitions,
which are needed for mpi3mr driver.

---
  drivers/scsi/scsi_transport_sas.c | 1 +
  include/scsi/scsi_transport_sas.h | 1 +
  2 files changed, 2 insertions(+)
drivers/scsi/scsi_transport_sas.c +1 -0
index 4a96fb05731d..4ee578b181da 100644
@@ -154,6 +154,7 @@ static struct {
  	{ SAS_LINK_RATE_3_0_GBPS,	"3.0 Gbit" },
  	{ SAS_LINK_RATE_6_0_GBPS,	"6.0 Gbit" },
  	{ SAS_LINK_RATE_12_0_GBPS,	"12.0 Gbit" },
+	{ SAS_LINK_RATE_22_5_GBPS,	"22.5 Gbit" },
  };
  sas_bitfield_name_search(linkspeed, sas_linkspeed_names)
  sas_bitfield_name_set(linkspeed, sas_linkspeed_names)
include/scsi/scsi_transport_sas.h +0 -0
index 05ec927a3c72..0e75b9277c8c 100644

include/scsi/scsi_transport_sas.h enum sas_linkrate { · line 44

Quoted 4 lines
include/scsi/scsi_transport_sas.h +1 -0
@@ -41,6 +41,7 @@ enum sas_linkrate {
  	SAS_LINK_RATE_G2 = SAS_LINK_RATE_3_0_GBPS,
  	SAS_LINK_RATE_6_0_GBPS = 10,
  	SAS_LINK_RATE_12_0_GBPS = 11,
+	SAS_LINK_RATE_22_5_GBPS = 12,

I don't have the T10 spec to check this value, but assume it's correct

include/scsi/scsi_transport_sas.h enum sas_linkrate { · line 47

Quoted 4 lines
include/scsi/scsi_transport_sas.h +0 -0
  	/* These are virtual to the transport class and may never
  	 * be signalled normally since the standard defined field
  	 * is only 4 bits */
#2 lore raw
In reply to Sreekanth Reddy

Sreekanth,

Quoted 2 lines

Adding 22.5GBPS link rate definitions,
which are needed for mpi3mr driver.

Applied to 5.16/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering