• Robert Hancock's avatar
    libata: add human-readable error value decoding · 1333e194
    Robert Hancock authored
    This adds human-readable decoding of the ATA status and error registers
    (similar to what drivers/ide does) as well as the SATA Serror register
    to libata error handling output.  This prevents the need to pore
    through standards documents to figure out the meaning of the bits
    in these registers when looking at error reports.  Some bits that
    drivers/ide decoded are not decoded here, since the bits are either
    command-dependent or obsolete, and properly parsing them would add
    too much complexity.
    Signed-off-by: default avatarRobert Hancock <hancockr@shaw.ca>
    
    [edited slightly to make output a bit more symmetric]
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    1333e194
libata-eh.c 68.8 KB