libata: cleanup SAT error translation
authorGwendal Grignou <gwendal@google.com>
Tue, 18 Jun 2013 17:54:48 +0000 (10:54 -0700)
committerTejun Heo <tj@kernel.org>
Tue, 18 Jun 2013 18:35:30 +0000 (11:35 -0700)
commit78062c50d15d6a0adfa09f6e35a6c52abcc9a32d
tree6f4e8b2674a5d48dcd9628d064eb335ac9f91e86
parent1e8f5f761ca3636bb6e281d9dd8adfa887b38eea
libata: cleanup SAT error translation

- Remove duplicate Medium Error Entry.

- Fix translations to match SAT2 translation table.

- Remove warning messages when translation is not found when decoding
  error or status register.

- Goes through status register decoding when only ABRT bit is set in
  error register.

Tested: When a disk fails, it sets

  Status = 0x71 [DRDY DF ERR] , Error = 0x4 [ABRT]

This patch will make the sense key HARDWARE_ERROR instead.

When there is a simple command syntax error:

  Status = 0x51 [DRDY ERR] , Error = 0x4 [ABRT]

The sense key remains ABORTED_COMMAND.

tj: Some updates to the description and comments.

Signed-off-by: Gwendal Grignou <gwendal@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-scsi.c
This page took 0.024749 seconds and 5 git commands to generate.