diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-11 13:28:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-11 13:28:45 -0500 |
commit | 540a7c5061f10a07748c89b6741af90db1a07252 (patch) | |
tree | 27285b973326f894980e029cb5f726e8865e1443 /drivers/ata | |
parent | 718749d56214aa97015fe01b76b6d6dd0c171796 (diff) | |
parent | 9c4a6b1e42801343535ccab4c190019d9975cce8 (diff) |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull first round of SCSI updates from James Bottomley:
"This is the usual grab bag of driver updates (hpsa, storvsc, mp2sas,
megaraid_sas, ses) plus an assortment of minor updates.
There's also an update to ufs which adds new phy drivers and finally a
new logging infrastructure for SCSI"
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (114 commits)
scsi_logging: return void for dev_printk() functions
scsi: print single-character strings with seq_putc
scsi: merge consecutive seq_puts calls
scsi: replace seq_printf with seq_puts
aha152x: replace seq_printf with seq_puts
advansys: replace seq_printf with seq_puts
scsi: remove SPRINTF macro
sg: remove an unused variable
hpsa: Use local workqueues instead of system workqueues
hpsa: add in P840ar controller model name
hpsa: add in gen9 controller model names
hpsa: detect and report failures changing controller transport modes
hpsa: shorten the wait for the CISS doorbell mode change ack
hpsa: refactor duplicated scan completion code into a new routine
hpsa: move SG descriptor set-up out of hpsa_scatter_gather()
hpsa: do not use function pointers in fast path command submission
hpsa: print CDBs instead of kernel virtual addresses for uncommon errors
hpsa: do not use a void pointer for scsi_cmd field of struct CommandList
hpsa: return failed from device reset/abort handlers
hpsa: check for ctlr lockup after command allocation in main io path
...
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-eh.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index a9f5aed32d39..d2029a462e2c 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -2481,7 +2481,6 @@ static void ata_eh_link_report(struct ata_link *link) | |||
2481 | for (tag = 0; tag < ATA_MAX_QUEUE; tag++) { | 2481 | for (tag = 0; tag < ATA_MAX_QUEUE; tag++) { |
2482 | struct ata_queued_cmd *qc = __ata_qc_from_tag(ap, tag); | 2482 | struct ata_queued_cmd *qc = __ata_qc_from_tag(ap, tag); |
2483 | struct ata_taskfile *cmd = &qc->tf, *res = &qc->result_tf; | 2483 | struct ata_taskfile *cmd = &qc->tf, *res = &qc->result_tf; |
2484 | const u8 *cdb = qc->cdb; | ||
2485 | char data_buf[20] = ""; | 2484 | char data_buf[20] = ""; |
2486 | char cdb_buf[70] = ""; | 2485 | char cdb_buf[70] = ""; |
2487 | 2486 | ||
@@ -2509,16 +2508,15 @@ static void ata_eh_link_report(struct ata_link *link) | |||
2509 | } | 2508 | } |
2510 | 2509 | ||
2511 | if (ata_is_atapi(qc->tf.protocol)) { | 2510 | if (ata_is_atapi(qc->tf.protocol)) { |
2512 | if (qc->scsicmd) | 2511 | const u8 *cdb = qc->cdb; |
2513 | scsi_print_command(qc->scsicmd); | 2512 | size_t cdb_len = qc->dev->cdb_len; |
2514 | else | 2513 | |
2515 | snprintf(cdb_buf, sizeof(cdb_buf), | 2514 | if (qc->scsicmd) { |
2516 | "cdb %02x %02x %02x %02x %02x %02x %02x %02x " | 2515 | cdb = qc->scsicmd->cmnd; |
2517 | "%02x %02x %02x %02x %02x %02x %02x %02x\n ", | 2516 | cdb_len = qc->scsicmd->cmd_len; |
2518 | cdb[0], cdb[1], cdb[2], cdb[3], | 2517 | } |
2519 | cdb[4], cdb[5], cdb[6], cdb[7], | 2518 | __scsi_format_command(cdb_buf, sizeof(cdb_buf), |
2520 | cdb[8], cdb[9], cdb[10], cdb[11], | 2519 | cdb, cdb_len); |
2521 | cdb[12], cdb[13], cdb[14], cdb[15]); | ||
2522 | } else { | 2520 | } else { |
2523 | const char *descr = ata_get_cmd_descript(cmd->command); | 2521 | const char *descr = ata_get_cmd_descript(cmd->command); |
2524 | if (descr) | 2522 | if (descr) |