[libata ahci] error handling fixes
authorJeff Garzik <jgarzik@pobox.com>
Mon, 14 Nov 2005 18:56:37 +0000 (13:56 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 14 Nov 2005 18:56:37 +0000 (13:56 -0500)
commitad36d1a533da91d3448029b4da1113c5b880f25d
tree00e66685a3572daed99fa8def4580ea6022b6db7
parent4ba529a8a39e15688b6a3d31b11930d1f8a1edad
[libata ahci] error handling fixes

Needed to get ATAPI working.

- dump hardware error bits, if hardware signals an error
- only reset hardware during timeout if a command was active
- call ata_qc_complete() with a fine-grained error mask.
  Needed so that atapi_qc_complete() can distinguish between
  device errors and other errors.
drivers/scsi/ahci.c