[PATCH] Controls Extension mode page fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix the previous patch so we create a correct mode page for the Controls Extension subpage

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
---
 usr/mmc.c |    2 +-
 usr/sbc.c |    2 +-
 usr/smc.c |    2 +-
 usr/ssc.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/usr/mmc.c b/usr/mmc.c
index d8d4a7b..768fe91 100644
--- a/usr/mmc.c
+++ b/usr/mmc.c
@@ -2245,7 +2245,7 @@ static tgtadm_err mmc_lu_init(struct scsi_lu *lu)
 	/* Control page */
 	add_mode_page(lu, "0x0a:0:10:2:0:0:0:0:0:0:0:2:0");
 	/* Control Extensions mode page:  TCMOS:1 */
-	add_mode_page(lu, "0x0a:1:0x00:0x1c:0x00:0x00:0x00");
+	add_mode_page(lu, "0x0a:1:0x1c:0x04:0x00:0x00");
 	/* Power Condition */
 	add_mode_page(lu, "0x1a:0:10:8:0:0:0:0:0:0:0:0:0");
 	/* Informational Exceptions Control page */
diff --git a/usr/sbc.c b/usr/sbc.c
index 77f32c4..0f99f18 100644
--- a/usr/sbc.c
+++ b/usr/sbc.c
@@ -700,7 +700,7 @@ static tgtadm_err sbc_lu_init(struct scsi_lu *lu)
 	add_mode_page(lu, "0x0a:0:10:2:0x10:0:0:0:0:0:0:2:0");
 
 	/* Control Extensions mode page:  TCMOS:1 */
-	add_mode_page(lu, "0x0a:1:5:0x00:0x1c:0x00:0x00:0x00");
+	add_mode_page(lu, "0x0a:1:0x1c:0x04:0x00:0x00");
 
 	/* Informational Exceptions Control page */
 	add_mode_page(lu, "0x1c:0:10:8:0:0:0:0:0:0:0:0:0");
diff --git a/usr/smc.c b/usr/smc.c
index c31a7c7..910b532 100644
--- a/usr/smc.c
+++ b/usr/smc.c
@@ -516,7 +516,7 @@ static tgtadm_err smc_lu_init(struct scsi_lu *lu)
 	/* Control page */
 	add_mode_page(lu, "0x0a:0:10:2:0:0:0:0:0:0:0:2:0");
 	/* Control Extensions mode page:  TCMOS:1 */
-	add_mode_page(lu, "0x0a:1:0x00:0x1c:0x00:0x00:0x00");
+	add_mode_page(lu, "0x0a:1:0x1c:0x04:0x00:0x00");
 	/* Power Condition */
 	add_mode_page(lu, "0x1a:0:10:8:0:0:0:0:0:0:0:0:0");
 	/* Informational Exceptions Control page */
diff --git a/usr/ssc.c b/usr/ssc.c
index 549cba9..60c6926 100644
--- a/usr/ssc.c
+++ b/usr/ssc.c
@@ -195,7 +195,7 @@ static tgtadm_err ssc_lu_init(struct scsi_lu *lu)
 	/* Control page - Mandatory - SPC-4 */
 	add_mode_page(lu, "0x0a:0:10:2:0:0:0:0:0:0:0:2:0");
 	/* Control Extensions mode page:  TCMOS:1 */
-	add_mode_page(lu, "0x0a:1:0x00:0x1c:0x00:0x00:0x00");
+	add_mode_page(lu, "0x0a:1:0x1c:0x04:0x00:0x00");
 	/* Data Compression - Mandatory - SSC3 8.3.2 */
 	add_mode_page(lu, "15:0:14:0:0:0:0:0:0:0:0:0:0:0:0:0:0");
 	/* Device Configuration - Mandatory - SSC3 8.3.3 */
-- 
1.7.3.1

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux