Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145211
b: refs/heads/master
c: cc30137
h: refs/heads/master
i:
  145209: bc7f885
  145207: 4fcd8db
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed May 22, 2009
1 parent 3ad9b70 commit 86cd131
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26bfcf21e25fa090f099fa0ccf201424989cbd7b
refs/heads/master: cc30137a221372c67a943ad9ea68121a2bd57a6e
23 changes: 4 additions & 19 deletions trunk/drivers/ide/ide-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,6 @@ void ide_toggle_bounce(ide_drive_t *drive, int on)
blk_queue_bounce_limit(drive->queue, addr);
}

static void ide_dump_opcode(ide_drive_t *drive)
{
struct request *rq = drive->hwif->rq;
struct ide_cmd *cmd = NULL;

if (!rq)
return;

if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE)
cmd = rq->special;

printk(KERN_ERR "ide: failed opcode was: ");
if (cmd == NULL)
printk(KERN_CONT "unknown\n");
else
printk(KERN_CONT "0x%02x\n", cmd->tf.command);
}

u64 ide_get_lba_addr(struct ide_cmd *cmd, int lba48)
{
struct ide_taskfile *tf = &cmd->tf;
Expand Down Expand Up @@ -179,7 +161,10 @@ u8 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat)
else
ide_dump_atapi_error(drive, err);
}
ide_dump_opcode(drive);

printk(KERN_ERR "%s: possibly failed opcode: 0x%02x\n",
drive->name, drive->hwif->cmd.tf.command);

return err;
}
EXPORT_SYMBOL(ide_dump_status);

0 comments on commit 86cd131

Please sign in to comment.