Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29417
b: refs/heads/master
c: a808be8
h: refs/heads/master
i:
  29415: 3b05add
v: v3
  • Loading branch information
Jeff Garzik committed Apr 2, 2006
1 parent 7b9ac72 commit 7a4f768
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c13b56a1130bbfacfb588de100e5a248383805a6
refs/heads/master: a808be8a12d61cdacba350fdce2e448045be8202
13 changes: 8 additions & 5 deletions trunk/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 7a4f768

Please sign in to comment.