diff options
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 44ba292f2cd7..66be961c93a4 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -106,10 +106,11 @@ static const u8 def_control_mpage[CONTROL_MPAGE_LEN] = { | |||
106 | }; | 106 | }; |
107 | 107 | ||
108 | static const char *ata_lpm_policy_names[] = { | 108 | static const char *ata_lpm_policy_names[] = { |
109 | [ATA_LPM_UNKNOWN] = "max_performance", | 109 | [ATA_LPM_UNKNOWN] = "max_performance", |
110 | [ATA_LPM_MAX_POWER] = "max_performance", | 110 | [ATA_LPM_MAX_POWER] = "max_performance", |
111 | [ATA_LPM_MED_POWER] = "medium_power", | 111 | [ATA_LPM_MED_POWER] = "medium_power", |
112 | [ATA_LPM_MIN_POWER] = "min_power", | 112 | [ATA_LPM_MED_POWER_WITH_DIPM] = "med_power_with_dipm", |
113 | [ATA_LPM_MIN_POWER] = "min_power", | ||
113 | }; | 114 | }; |
114 | 115 | ||
115 | static ssize_t ata_scsi_lpm_store(struct device *device, | 116 | static ssize_t ata_scsi_lpm_store(struct device *device, |
@@ -2145,7 +2146,7 @@ static void ata_scsi_rbuf_fill(struct ata_scsi_args *args, | |||
2145 | */ | 2146 | */ |
2146 | static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | 2147 | static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) |
2147 | { | 2148 | { |
2148 | const u8 versions[] = { | 2149 | static const u8 versions[] = { |
2149 | 0x00, | 2150 | 0x00, |
2150 | 0x60, /* SAM-3 (no version claimed) */ | 2151 | 0x60, /* SAM-3 (no version claimed) */ |
2151 | 2152 | ||
@@ -2155,7 +2156,7 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | |||
2155 | 0x03, | 2156 | 0x03, |
2156 | 0x00 /* SPC-3 (no version claimed) */ | 2157 | 0x00 /* SPC-3 (no version claimed) */ |
2157 | }; | 2158 | }; |
2158 | const u8 versions_zbc[] = { | 2159 | static const u8 versions_zbc[] = { |
2159 | 0x00, | 2160 | 0x00, |
2160 | 0xA0, /* SAM-5 (no version claimed) */ | 2161 | 0xA0, /* SAM-5 (no version claimed) */ |
2161 | 2162 | ||
@@ -2227,7 +2228,7 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | |||
2227 | static unsigned int ata_scsiop_inq_00(struct ata_scsi_args *args, u8 *rbuf) | 2228 | static unsigned int ata_scsiop_inq_00(struct ata_scsi_args *args, u8 *rbuf) |
2228 | { | 2229 | { |
2229 | int num_pages; | 2230 | int num_pages; |
2230 | const u8 pages[] = { | 2231 | static const u8 pages[] = { |
2231 | 0x00, /* page 0x00, this page */ | 2232 | 0x00, /* page 0x00, this page */ |
2232 | 0x80, /* page 0x80, unit serial no page */ | 2233 | 0x80, /* page 0x80, unit serial no page */ |
2233 | 0x83, /* page 0x83, device ident page */ | 2234 | 0x83, /* page 0x83, device ident page */ |
@@ -2258,7 +2259,7 @@ static unsigned int ata_scsiop_inq_00(struct ata_scsi_args *args, u8 *rbuf) | |||
2258 | */ | 2259 | */ |
2259 | static unsigned int ata_scsiop_inq_80(struct ata_scsi_args *args, u8 *rbuf) | 2260 | static unsigned int ata_scsiop_inq_80(struct ata_scsi_args *args, u8 *rbuf) |
2260 | { | 2261 | { |
2261 | const u8 hdr[] = { | 2262 | static const u8 hdr[] = { |
2262 | 0, | 2263 | 0, |
2263 | 0x80, /* this page code */ | 2264 | 0x80, /* this page code */ |
2264 | 0, | 2265 | 0, |
@@ -2580,7 +2581,7 @@ static unsigned int ata_scsiop_mode_sense(struct ata_scsi_args *args, u8 *rbuf) | |||
2580 | { | 2581 | { |
2581 | struct ata_device *dev = args->dev; | 2582 | struct ata_device *dev = args->dev; |
2582 | u8 *scsicmd = args->cmd->cmnd, *p = rbuf; | 2583 | u8 *scsicmd = args->cmd->cmnd, *p = rbuf; |
2583 | const u8 sat_blk_desc[] = { | 2584 | static const u8 sat_blk_desc[] = { |
2584 | 0, 0, 0, 0, /* number of blocks: sat unspecified */ | 2585 | 0, 0, 0, 0, /* number of blocks: sat unspecified */ |
2585 | 0, | 2586 | 0, |
2586 | 0, 0x2, 0x0 /* block length: 512 bytes */ | 2587 | 0, 0x2, 0x0 /* block length: 512 bytes */ |