All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi_transport_sas: Add 22.5 link rate definitions
@ 2021-10-18  7:06 Sreekanth Reddy
  2021-10-18  8:03 ` John Garry
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sreekanth Reddy @ 2021-10-18  7:06 UTC (permalink / raw)
  To: linux-scsi, martin.petersen; +Cc: sathya.prakash, Sreekanth Reddy

[-- Attachment #1: Type: text/plain, Size: 1323 bytes --]

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

Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
---
 drivers/scsi/scsi_transport_sas.c | 1 +
 include/scsi/scsi_transport_sas.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c
index 4a96fb05731d..4ee578b181da 100644
--- a/drivers/scsi/scsi_transport_sas.c
+++ b/drivers/scsi/scsi_transport_sas.c
@@ -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)
diff --git a/include/scsi/scsi_transport_sas.h b/include/scsi/scsi_transport_sas.h
index 05ec927a3c72..0e75b9277c8c 100644
--- a/include/scsi/scsi_transport_sas.h
+++ b/include/scsi/scsi_transport_sas.h
@@ -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 */
-- 
2.27.0


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4218 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] scsi_transport_sas: Add 22.5 link rate definitions
  2021-10-18  7:06 [PATCH] scsi_transport_sas: Add 22.5 link rate definitions Sreekanth Reddy
@ 2021-10-18  8:03 ` John Garry
  2021-10-19  3:15 ` Martin K. Petersen
  2021-10-21  3:42 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: John Garry @ 2021-10-18  8:03 UTC (permalink / raw)
  To: Sreekanth Reddy, linux-scsi, martin.petersen; +Cc: sathya.prakash

On 18/10/2021 08:06, Sreekanth Reddy wrote:
> Adding 22.5GBPS link rate definitions,
> which are needed for mpi3mr driver.
> 
> Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
> ---
>   drivers/scsi/scsi_transport_sas.c | 1 +
>   include/scsi/scsi_transport_sas.h | 1 +
>   2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c
> index 4a96fb05731d..4ee578b181da 100644
> --- a/drivers/scsi/scsi_transport_sas.c
> +++ b/drivers/scsi/scsi_transport_sas.c
> @@ -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)
> diff --git a/include/scsi/scsi_transport_sas.h b/include/scsi/scsi_transport_sas.h
> index 05ec927a3c72..0e75b9277c8c 100644
> --- a/include/scsi/scsi_transport_sas.h
> +++ b/include/scsi/scsi_transport_sas.h
> @@ -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

>   	/* These are virtual to the transport class and may never
>   	 * be signalled normally since the standard defined field
>   	 * is only 4 bits */
> 

Reviewed-by: John Garry <john.garry@huawei.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] scsi_transport_sas: Add 22.5 link rate definitions
  2021-10-18  7:06 [PATCH] scsi_transport_sas: Add 22.5 link rate definitions Sreekanth Reddy
  2021-10-18  8:03 ` John Garry
@ 2021-10-19  3:15 ` Martin K. Petersen
  2021-10-21  3:42 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2021-10-19  3:15 UTC (permalink / raw)
  To: Sreekanth Reddy; +Cc: linux-scsi, martin.petersen, sathya.prakash


Sreekanth,

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

Applied to 5.16/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] scsi_transport_sas: Add 22.5 link rate definitions
  2021-10-18  7:06 [PATCH] scsi_transport_sas: Add 22.5 link rate definitions Sreekanth Reddy
  2021-10-18  8:03 ` John Garry
  2021-10-19  3:15 ` Martin K. Petersen
@ 2021-10-21  3:42 ` Martin K. Petersen
  2 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2021-10-21  3:42 UTC (permalink / raw)
  To: Sreekanth Reddy, linux-scsi; +Cc: Martin K . Petersen, sathya.prakash

On Mon, 18 Oct 2021 12:36:11 +0530, Sreekanth Reddy wrote:

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

Applied to 5.16/scsi-queue, thanks!

[1/1] scsi_transport_sas: Add 22.5 link rate definitions
      https://git.kernel.org/mkp/scsi/c/3d8fa78ebd61

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-21  3:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18  7:06 [PATCH] scsi_transport_sas: Add 22.5 link rate definitions Sreekanth Reddy
2021-10-18  8:03 ` John Garry
2021-10-19  3:15 ` Martin K. Petersen
2021-10-21  3:42 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.