linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series.
@ 2016-06-03 12:03 Charles Chiou
  2016-06-03 12:09 ` Charles Chiou
  0 siblings, 1 reply; 8+ messages in thread
From: Charles Chiou @ 2016-06-03 12:03 UTC (permalink / raw)
  To: jejb, martin.petersen, linux-scsi, linux-kernel; +Cc: Charles

From: Charles <charles.chiou@tw.promise.com>

Pegasus is a high performace hardware RAID solution designed to unleash
the raw power of Thunderbolt technology.

1. Add code to distinct SuperTrack and Pegasus series by sub device ID.
   It should support backward compatibility.

2. Change the driver version.

Signed-off-by: Charles Chiou <charles.chiou@tw.promise.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
---
 drivers/scsi/stex.c | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 2de28d7..495d632 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -1,7 +1,7 @@
 /*
  * SuperTrak EX Series Storage Controller driver for Linux
  *
- *	Copyright (C) 2005-2009 Promise Technology Inc.
+ *	Copyright (C) 2005-2015 Promise Technology Inc.
  *
  *	This program is free software; you can redistribute it and/or
  *	modify it under the terms of the GNU General Public License
@@ -38,11 +38,11 @@
 #include <scsi/scsi_eh.h>
 
 #define DRV_NAME "stex"
-#define ST_DRIVER_VERSION "4.6.0000.4"
-#define ST_VER_MAJOR		4
-#define ST_VER_MINOR		6
-#define ST_OEM			0
-#define ST_BUILD_VER		4
+#define ST_DRIVER_VERSION	"5.00.0000.01"
+#define ST_VER_MAJOR		5
+#define ST_VER_MINOR		00
+#define ST_OEM				0000
+#define ST_BUILD_VER		01
 
 enum {
 	/* MU register offset */
@@ -328,6 +328,7 @@ struct st_hba {
 	u16 rq_count;
 	u16 rq_size;
 	u16 sts_count;
+	u8  supports_pm;
 };
 
 struct st_card_info {
@@ -1560,6 +1561,25 @@ static int stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 
 	hba->cardtype = (unsigned int) id->driver_data;
 	ci = &stex_card_info[hba->cardtype];
+	switch (id->subdevice) {
+	case 0x4221:
+	case 0x4222:
+	case 0x4223:
+	case 0x4224:
+	case 0x4225:
+	case 0x4226:
+	case 0x4227:
+	case 0x4261:
+	case 0x4262:
+	case 0x4263:
+	case 0x4264:
+	case 0x4265:
+		break;
+	default:
+		if (hba->cardtype == st_yel)
+			hba->supports_pm = 1;
+	}
+
 	sts_offset = scratch_offset = (ci->rq_count+1) * ci->rq_size;
 	if (hba->cardtype == st_yel)
 		sts_offset += (ci->sts_count+1) * sizeof(u32);
-- 
1.9.1

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

* Re: [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series.
  2016-06-03 12:03 [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series Charles Chiou
@ 2016-06-03 12:09 ` Charles Chiou
  0 siblings, 0 replies; 8+ messages in thread
From: Charles Chiou @ 2016-06-03 12:09 UTC (permalink / raw)
  To: jejb, martin.petersen, linux-scsi, linux-kernel; +Cc: Charles

Sorry, this is the old patch, pls just ignore this patch

Thank you
Charles

On 06/03/2016 08:03 PM, Charles Chiou wrote:
> From: Charles <charles.chiou@tw.promise.com>
>
> Pegasus is a high performace hardware RAID solution designed to unleash
> the raw power of Thunderbolt technology.
>
> 1. Add code to distinct SuperTrack and Pegasus series by sub device ID.
>     It should support backward compatibility.
>
> 2. Change the driver version.
>
> Signed-off-by: Charles Chiou <charles.chiou@tw.promise.com>
> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
> ---
>   drivers/scsi/stex.c | 32 ++++++++++++++++++++++++++------
>   1 file changed, 26 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
> index 2de28d7..495d632 100644
> --- a/drivers/scsi/stex.c
> +++ b/drivers/scsi/stex.c
> @@ -1,7 +1,7 @@
>   /*
>    * SuperTrak EX Series Storage Controller driver for Linux
>    *
> - *	Copyright (C) 2005-2009 Promise Technology Inc.
> + *	Copyright (C) 2005-2015 Promise Technology Inc.
>    *
>    *	This program is free software; you can redistribute it and/or
>    *	modify it under the terms of the GNU General Public License
> @@ -38,11 +38,11 @@
>   #include <scsi/scsi_eh.h>
>
>   #define DRV_NAME "stex"
> -#define ST_DRIVER_VERSION "4.6.0000.4"
> -#define ST_VER_MAJOR		4
> -#define ST_VER_MINOR		6
> -#define ST_OEM			0
> -#define ST_BUILD_VER		4
> +#define ST_DRIVER_VERSION	"5.00.0000.01"
> +#define ST_VER_MAJOR		5
> +#define ST_VER_MINOR		00
> +#define ST_OEM				0000
> +#define ST_BUILD_VER		01
>
>   enum {
>   	/* MU register offset */
> @@ -328,6 +328,7 @@ struct st_hba {
>   	u16 rq_count;
>   	u16 rq_size;
>   	u16 sts_count;
> +	u8  supports_pm;
>   };
>
>   struct st_card_info {
> @@ -1560,6 +1561,25 @@ static int stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
>
>   	hba->cardtype = (unsigned int) id->driver_data;
>   	ci = &stex_card_info[hba->cardtype];
> +	switch (id->subdevice) {
> +	case 0x4221:
> +	case 0x4222:
> +	case 0x4223:
> +	case 0x4224:
> +	case 0x4225:
> +	case 0x4226:
> +	case 0x4227:
> +	case 0x4261:
> +	case 0x4262:
> +	case 0x4263:
> +	case 0x4264:
> +	case 0x4265:
> +		break;
> +	default:
> +		if (hba->cardtype == st_yel)
> +			hba->supports_pm = 1;
> +	}
> +
>   	sts_offset = scratch_offset = (ci->rq_count+1) * ci->rq_size;
>   	if (hba->cardtype == st_yel)
>   		sts_offset += (ci->sts_count+1) * sizeof(u32);
>

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

* Re: [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series.
  2016-02-22 12:02 Charles Chiou
@ 2016-02-24  2:18 ` Martin K. Petersen
  0 siblings, 0 replies; 8+ messages in thread
From: Martin K. Petersen @ 2016-02-24  2:18 UTC (permalink / raw)
  To: Charles Chiou
  Cc: JBottomley, martin.petersen, jthumshirn, hch, oneukum,
	linus.chen, grace.chang, victor.p, eva.cheng, charles.chiou,
	linux-scsi, linux-kernel

>>>>> "Charles" == Charles Chiou <ch1102chiou@gmail.com> writes:

Charles> Pegasus is a high performace hardware RAID solution designed to
Charles> unleash the raw power of Thunderbolt technology.

Applied patches 1-3 to 4.6/scsi-queue.

-- 
Martin K. Petersen	Oracle Linux Engineering

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

* [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series.
@ 2016-02-22 12:02 Charles Chiou
  2016-02-24  2:18 ` Martin K. Petersen
  0 siblings, 1 reply; 8+ messages in thread
From: Charles Chiou @ 2016-02-22 12:02 UTC (permalink / raw)
  To: JBottomley, martin.petersen, jthumshirn, hch, oneukum,
	linus.chen, grace.chang, victor.p, eva.cheng, charles.chiou
  Cc: linux-scsi, linux-kernel

From: Charles <charles.chiou@tw.promise.com>

Pegasus is a high performace hardware RAID solution designed to unleash
the raw power of Thunderbolt technology.

1. Add code to distinct SuperTrack and Pegasus series by sub device ID.
   It should support backward compatibility.

2. Change the driver version.

Signed-off-by: Charles Chiou <charles.chiou@tw.promise.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
---
 drivers/scsi/stex.c | 32 ++++++++++++++++++++++++++------
 1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 2de28d7..495d632 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -1,7 +1,7 @@
 /*
  * SuperTrak EX Series Storage Controller driver for Linux
  *
- *	Copyright (C) 2005-2009 Promise Technology Inc.
+ *	Copyright (C) 2005-2015 Promise Technology Inc.
  *
  *	This program is free software; you can redistribute it and/or
  *	modify it under the terms of the GNU General Public License
@@ -38,11 +38,11 @@
 #include <scsi/scsi_eh.h>
 
 #define DRV_NAME "stex"
-#define ST_DRIVER_VERSION "4.6.0000.4"
-#define ST_VER_MAJOR		4
-#define ST_VER_MINOR		6
-#define ST_OEM			0
-#define ST_BUILD_VER		4
+#define ST_DRIVER_VERSION	"5.00.0000.01"
+#define ST_VER_MAJOR		5
+#define ST_VER_MINOR		00
+#define ST_OEM				0000
+#define ST_BUILD_VER		01
 
 enum {
 	/* MU register offset */
@@ -328,6 +328,7 @@ struct st_hba {
 	u16 rq_count;
 	u16 rq_size;
 	u16 sts_count;
+	u8  supports_pm;
 };
 
 struct st_card_info {
@@ -1560,6 +1561,25 @@ static int stex_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 
 	hba->cardtype = (unsigned int) id->driver_data;
 	ci = &stex_card_info[hba->cardtype];
+	switch (id->subdevice) {
+	case 0x4221:
+	case 0x4222:
+	case 0x4223:
+	case 0x4224:
+	case 0x4225:
+	case 0x4226:
+	case 0x4227:
+	case 0x4261:
+	case 0x4262:
+	case 0x4263:
+	case 0x4264:
+	case 0x4265:
+		break;
+	default:
+		if (hba->cardtype == st_yel)
+			hba->supports_pm = 1;
+	}
+
 	sts_offset = scratch_offset = (ci->rq_count+1) * ci->rq_size;
 	if (hba->cardtype == st_yel)
 		sts_offset += (ci->sts_count+1) * sizeof(u32);
-- 
1.9.1

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

* Re: [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series.
  2016-01-29 11:21   ` Charles Chiou
@ 2016-02-02  0:34     ` Martin K. Petersen
  0 siblings, 0 replies; 8+ messages in thread
From: Martin K. Petersen @ 2016-02-02  0:34 UTC (permalink / raw)
  To: Charles Chiou
  Cc: Johannes Thumshirn, Christoph Hellwig, JBottomley, Oliver Neukum,
	grace.chang, linus.chen, victor.p, linux-scsi, linux-kernel

>>>>> "Charles" == Charles Chiou <ch1102chiou@gmail.com> writes:

Charles> Does this patch has others issues need to fix?

Please resubmit your patch series with the review tag from Johannes
added.

Thank you!

-- 
Martin K. Petersen	Oracle Linux Engineering

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

* Re: [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series.
  2015-09-03 14:16 ` Johannes Thumshirn
@ 2016-01-29 11:21   ` Charles Chiou
  2016-02-02  0:34     ` Martin K. Petersen
  0 siblings, 1 reply; 8+ messages in thread
From: Charles Chiou @ 2016-01-29 11:21 UTC (permalink / raw)
  To: Johannes Thumshirn
  Cc: Christoph Hellwig, JBottomley, Oliver Neukum, grace.chang,
	linus.chen, victor.p, linux-scsi, linux-kernel

Hi all, Ping?
Does this patch has others issues need to fix? Thank you.
Charles


On 09/03/2015 10:16 PM, Johannes Thumshirn wrote:
> Charles Chiou <ch1102chiou@gmail.com> writes:
>
>>  From 9d7973dfa05a7785d0eb1e9bcfb0fb6d2c493209 Mon Sep 17 00:00:00 2001
>> From: Charles <charles.chiou@tw.promise.com>
>> Date: Wed, 2 Sep 2015 20:41:56 +0800
>> Subject: [PATCH 1/3] scsi:stex.c Support to Pegasus series.
>>
>> Pegasus is a high performace hardware RAID solution designed to unleash
>> the raw power of Thunderbolt technology.
>>
>> 1. Add code to distinct SuperTrack and Pegasus series by sub device ID.
>>     It should support backward compatibility.
>>
>> 2. Change the driver version.
>>
>> V2: Remove blank lines
>>
>> Signed-off-by: Charles Chiou <charles.chiou@tw.promise.com>
>> ---
>>   drivers/scsi/stex.c | 32 ++++++++++++++++++++++++++------
>>   1 file changed, 26 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
>> index 98a62bc..0c93f1f 100644
>> --- a/drivers/scsi/stex.c
>> +++ b/drivers/scsi/stex.c
>> @@ -1,7 +1,7 @@
>>   /*
>>    * SuperTrak EX Series Storage Controller driver for Linux
>>    *
>> - *	Copyright (C) 2005-2009 Promise Technology Inc.
>> + *	Copyright (C) 2005-2015 Promise Technology Inc.
>>    *
>>    *	This program is free software; you can redistribute it and/or
>>    *	modify it under the terms of the GNU General Public License
>> @@ -37,11 +37,11 @@
>>   #include <scsi/scsi_eh.h>
>>
>>   #define DRV_NAME "stex"
>> -#define ST_DRIVER_VERSION "4.6.0000.4"
>> -#define ST_VER_MAJOR		4
>> -#define ST_VER_MINOR		6
>> -#define ST_OEM			0
>> -#define ST_BUILD_VER		4
>> +#define ST_DRIVER_VERSION	"5.00.0000.01"
>> +#define ST_VER_MAJOR		5
>> +#define ST_VER_MINOR		00
>> +#define ST_OEM				0000
>> +#define ST_BUILD_VER		01
>>
>>   enum {
>>   	/* MU register offset */
>> @@ -327,6 +327,7 @@ struct st_hba {
>>   	u16 rq_count;
>>   	u16 rq_size;
>>   	u16 sts_count;
>> +	u8  supports_pm;
>>   };
>>
>>   struct st_card_info {
>> @@ -1568,6 +1569,25 @@ static int stex_probe(struct pci_dev *pdev, const struct
>> pci_device_id *id)
>>
>>   	hba->cardtype = (unsigned int) id->driver_data;
>>   	ci = &stex_card_info[hba->cardtype];
>> +	switch (id->subdevice) {
>> +	case 0x4221:
>> +	case 0x4222:
>> +	case 0x4223:
>> +	case 0x4224:
>> +	case 0x4225:
>> +	case 0x4226:
>> +	case 0x4227:
>> +	case 0x4261:
>> +	case 0x4262:
>> +	case 0x4263:
>> +	case 0x4264:
>> +	case 0x4265:
>> +		break;
>> +	default:
>> +		if (hba->cardtype == st_yel)
>> +			hba->supports_pm = 1;
>> +	}
>> +
>>   	sts_offset = scratch_offset = (ci->rq_count+1) * ci->rq_size;
>>   	if (hba->cardtype == st_yel)
>>   		sts_offset += (ci->sts_count+1) * sizeof(u32);
>
> I somehow find that switch() above awkward to read, but if no-one else
> objects, who am I to do.
>
> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
>

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

* Re: [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series.
  2015-09-03 12:29 Charles Chiou
@ 2015-09-03 14:16 ` Johannes Thumshirn
  2016-01-29 11:21   ` Charles Chiou
  0 siblings, 1 reply; 8+ messages in thread
From: Johannes Thumshirn @ 2015-09-03 14:16 UTC (permalink / raw)
  To: Charles Chiou
  Cc: Christoph Hellwig, JBottomley, Oliver Neukum, grace.chang,
	linus.chen, victor.p, linux-scsi, linux-kernel

Charles Chiou <ch1102chiou@gmail.com> writes:

> From 9d7973dfa05a7785d0eb1e9bcfb0fb6d2c493209 Mon Sep 17 00:00:00 2001
> From: Charles <charles.chiou@tw.promise.com>
> Date: Wed, 2 Sep 2015 20:41:56 +0800
> Subject: [PATCH 1/3] scsi:stex.c Support to Pegasus series.
>
> Pegasus is a high performace hardware RAID solution designed to unleash
> the raw power of Thunderbolt technology.
>
> 1. Add code to distinct SuperTrack and Pegasus series by sub device ID.
>    It should support backward compatibility.
>
> 2. Change the driver version.
>
> V2: Remove blank lines
>
> Signed-off-by: Charles Chiou <charles.chiou@tw.promise.com>
> ---
>  drivers/scsi/stex.c | 32 ++++++++++++++++++++++++++------
>  1 file changed, 26 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
> index 98a62bc..0c93f1f 100644
> --- a/drivers/scsi/stex.c
> +++ b/drivers/scsi/stex.c
> @@ -1,7 +1,7 @@
>  /*
>   * SuperTrak EX Series Storage Controller driver for Linux
>   *
> - *	Copyright (C) 2005-2009 Promise Technology Inc.
> + *	Copyright (C) 2005-2015 Promise Technology Inc.
>   *
>   *	This program is free software; you can redistribute it and/or
>   *	modify it under the terms of the GNU General Public License
> @@ -37,11 +37,11 @@
>  #include <scsi/scsi_eh.h>
>
>  #define DRV_NAME "stex"
> -#define ST_DRIVER_VERSION "4.6.0000.4"
> -#define ST_VER_MAJOR		4
> -#define ST_VER_MINOR		6
> -#define ST_OEM			0
> -#define ST_BUILD_VER		4
> +#define ST_DRIVER_VERSION	"5.00.0000.01"
> +#define ST_VER_MAJOR		5
> +#define ST_VER_MINOR		00
> +#define ST_OEM				0000
> +#define ST_BUILD_VER		01
>
>  enum {
>  	/* MU register offset */
> @@ -327,6 +327,7 @@ struct st_hba {
>  	u16 rq_count;
>  	u16 rq_size;
>  	u16 sts_count;
> +	u8  supports_pm;
>  };
>
>  struct st_card_info {
> @@ -1568,6 +1569,25 @@ static int stex_probe(struct pci_dev *pdev, const struct
> pci_device_id *id)
>
>  	hba->cardtype = (unsigned int) id->driver_data;
>  	ci = &stex_card_info[hba->cardtype];
> +	switch (id->subdevice) {
> +	case 0x4221:
> +	case 0x4222:
> +	case 0x4223:
> +	case 0x4224:
> +	case 0x4225:
> +	case 0x4226:
> +	case 0x4227:
> +	case 0x4261:
> +	case 0x4262:
> +	case 0x4263:
> +	case 0x4264:
> +	case 0x4265:
> +		break;
> +	default:
> +		if (hba->cardtype == st_yel)
> +			hba->supports_pm = 1;
> +	}
> +
>  	sts_offset = scratch_offset = (ci->rq_count+1) * ci->rq_size;
>  	if (hba->cardtype == st_yel)
>  		sts_offset += (ci->sts_count+1) * sizeof(u32);

I somehow find that switch() above awkward to read, but if no-one else
objects, who am I to do.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>

-- 
Johannes Thumshirn                                           Storage
jthumshirn@suse.de                                 +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600  D0D0 0393 969D 2D76 0850

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

* [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series.
@ 2015-09-03 12:29 Charles Chiou
  2015-09-03 14:16 ` Johannes Thumshirn
  0 siblings, 1 reply; 8+ messages in thread
From: Charles Chiou @ 2015-09-03 12:29 UTC (permalink / raw)
  To: Charles Chiou, Christoph Hellwig, JBottomley, Oliver Neukum
  Cc: grace.chang, linus.chen, victor.p, linux-scsi, linux-kernel

 From 9d7973dfa05a7785d0eb1e9bcfb0fb6d2c493209 Mon Sep 17 00:00:00 2001
From: Charles <charles.chiou@tw.promise.com>
Date: Wed, 2 Sep 2015 20:41:56 +0800
Subject: [PATCH 1/3] scsi:stex.c Support to Pegasus series.

Pegasus is a high performace hardware RAID solution designed to unleash
the raw power of Thunderbolt technology.

1. Add code to distinct SuperTrack and Pegasus series by sub device ID.
    It should support backward compatibility.

2. Change the driver version.

V2: Remove blank lines

Signed-off-by: Charles Chiou <charles.chiou@tw.promise.com>
---
  drivers/scsi/stex.c | 32 ++++++++++++++++++++++++++------
  1 file changed, 26 insertions(+), 6 deletions(-)

diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 98a62bc..0c93f1f 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -1,7 +1,7 @@
  /*
   * SuperTrak EX Series Storage Controller driver for Linux
   *
- *	Copyright (C) 2005-2009 Promise Technology Inc.
+ *	Copyright (C) 2005-2015 Promise Technology Inc.
   *
   *	This program is free software; you can redistribute it and/or
   *	modify it under the terms of the GNU General Public License
@@ -37,11 +37,11 @@
  #include <scsi/scsi_eh.h>

  #define DRV_NAME "stex"
-#define ST_DRIVER_VERSION "4.6.0000.4"
-#define ST_VER_MAJOR		4
-#define ST_VER_MINOR		6
-#define ST_OEM			0
-#define ST_BUILD_VER		4
+#define ST_DRIVER_VERSION	"5.00.0000.01"
+#define ST_VER_MAJOR		5
+#define ST_VER_MINOR		00
+#define ST_OEM				0000
+#define ST_BUILD_VER		01

  enum {
  	/* MU register offset */
@@ -327,6 +327,7 @@ struct st_hba {
  	u16 rq_count;
  	u16 rq_size;
  	u16 sts_count;
+	u8  supports_pm;
  };

  struct st_card_info {
@@ -1568,6 +1569,25 @@ static int stex_probe(struct pci_dev *pdev, const 
struct pci_device_id *id)

  	hba->cardtype = (unsigned int) id->driver_data;
  	ci = &stex_card_info[hba->cardtype];
+	switch (id->subdevice) {
+	case 0x4221:
+	case 0x4222:
+	case 0x4223:
+	case 0x4224:
+	case 0x4225:
+	case 0x4226:
+	case 0x4227:
+	case 0x4261:
+	case 0x4262:
+	case 0x4263:
+	case 0x4264:
+	case 0x4265:
+		break;
+	default:
+		if (hba->cardtype == st_yel)
+			hba->supports_pm = 1;
+	}
+
  	sts_offset = scratch_offset = (ci->rq_count+1) * ci->rq_size;
  	if (hba->cardtype == st_yel)
  		sts_offset += (ci->sts_count+1) * sizeof(u32);
-- 
1.9.1


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

end of thread, other threads:[~2016-06-03 12:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-03 12:03 [v2 PATCH 1/3] scsi:stex.c Support to Pegasus series Charles Chiou
2016-06-03 12:09 ` Charles Chiou
  -- strict thread matches above, loose matches on Subject: below --
2016-02-22 12:02 Charles Chiou
2016-02-24  2:18 ` Martin K. Petersen
2015-09-03 12:29 Charles Chiou
2015-09-03 14:16 ` Johannes Thumshirn
2016-01-29 11:21   ` Charles Chiou
2016-02-02  0:34     ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).