[PATCH] libata: print SControl in SATA link status info message
Now that libata mangles with SControl, it's helpful to print out SControl in link status message. Add it. Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
1ad8e7f9eb
commit
6d5f9732a1
1 changed files with 8 additions and 5 deletions
|
@ -1503,20 +1503,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue