Skip to content

Commit

Permalink
Merge branch 'upstream'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Apr 2, 2006
2 parents c13b56a + 6d5f973 commit a808be8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1517,20 +1517,23 @@ void ata_port_probe(struct ata_port *ap)
*/
static void sata_print_link_status(struct ata_port *ap)
{
u32 sstatus, tmp;
u32 sstatus, scontrol, tmp;

if (!ap->ops->scr_read)
return;

sstatus = scr_read(ap, SCR_STATUS);
scontrol = scr_read(ap, SCR_CONTROL);

if (sata_dev_present(ap)) {
tmp = (sstatus >> 4) & 0xf;
printk(KERN_INFO "ata%u: SATA link up %s (SStatus %X)\n",
ap->id, sata_spd_string(tmp), sstatus);
printk(KERN_INFO
"ata%u: SATA link up %s (SStatus %X SControl %X)\n",
ap->id, sata_spd_string(tmp), sstatus, scontrol);
} else {
printk(KERN_INFO "ata%u: SATA link down (SStatus %X)\n",
ap->id, sstatus);
printk(KERN_INFO
"ata%u: SATA link down (SStatus %X SControl %X)\n",
ap->id, sstatus, scontrol);
}
}

Expand Down

0 comments on commit a808be8

Please sign in to comment.