aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r--drivers/scsi/libata-core.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 8beba3cd9a56..966be3034bf0 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -1503,20 +1503,23 @@ void ata_port_probe(struct ata_port *ap)
1503 */ 1503 */
1504static void sata_print_link_status(struct ata_port *ap) 1504static void sata_print_link_status(struct ata_port *ap)
1505{ 1505{
1506 u32 sstatus, tmp; 1506 u32 sstatus, scontrol, tmp;
1507 1507
1508 if (!ap->ops->scr_read) 1508 if (!ap->ops->scr_read)
1509 return; 1509 return;
1510 1510
1511 sstatus = scr_read(ap, SCR_STATUS); 1511 sstatus = scr_read(ap, SCR_STATUS);
1512 scontrol = scr_read(ap, SCR_CONTROL);
1512 1513
1513 if (sata_dev_present(ap)) { 1514 if (sata_dev_present(ap)) {
1514 tmp = (sstatus >> 4) & 0xf; 1515 tmp = (sstatus >> 4) & 0xf;
1515 printk(KERN_INFO "ata%u: SATA link up %s (SStatus %X)\n", 1516 printk(KERN_INFO
1516 ap->id, sata_spd_string(tmp), sstatus); 1517 "ata%u: SATA link up %s (SStatus %X SControl %X)\n",
1518 ap->id, sata_spd_string(tmp), sstatus, scontrol);
1517 } else { 1519 } else {
1518 printk(KERN_INFO "ata%u: SATA link down (SStatus %X)\n", 1520 printk(KERN_INFO
1519 ap->id, sstatus); 1521 "ata%u: SATA link down (SStatus %X SControl %X)\n",
1522 ap->id, sstatus, scontrol);
1520 } 1523 }
1521} 1524}
1522 1525