[PATCH] libata: implement ap->sata_spd_limit and helpers
authorTejun Heo <htejun@gmail.com>
Sun, 2 Apr 2006 11:53:28 +0000 (20:53 +0900)
committerJeff Garzik <jeff@garzik.org>
Sun, 2 Apr 2006 14:02:57 +0000 (10:02 -0400)
commit1c3fae4d7eb121933341443c37d3bbee43c0fb68
treee7f0c4145b3a108817c2a7e6bea58a72eb3692e1
parent002c8054fa8d0f1afce2b0c728be32d338b9293a
[PATCH] libata: implement ap->sata_spd_limit and helpers

ap->sata_spd_limit contrains SATA PHY speed of the port.  It is
initialized to the configured value prior to probing thus preserving
BIOS configured value.  hardreset is responsible for applying SPD
limit and sata_std_hardreset() is updated to do that.  SATA SPD limit
will be used to enhance failure handling during probing and later by
EH.

This patch also normalizes some comments around affected code.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c
include/linux/libata.h