[PATCH] libata-hp-prep: implement sata_phy_debounce()
authorTejun Heo <htejun@gmail.com>
Wed, 31 May 2006 09:27:46 +0000 (18:27 +0900)
committerTejun Heo <htejun@gmail.com>
Wed, 31 May 2006 09:27:46 +0000 (18:27 +0900)
commitd7bb4cc7575929a60b0a718daa1bce87bea9a9cc
treeff4cd9715f5ba608795bc4a1b7b86ffd2cf4f99c
parenta9beec95352ff675f27d74c3cb97dc258d022497
[PATCH] libata-hp-prep: implement sata_phy_debounce()

With hotplug, PHY always needs to be debounced before a reset as any
reset might find new devices.  Extract PHY waiting code from
sata_phy_resume() and extend it to include SStatus debouncing.  Note
that sata_phy_debounce() is superset of what used to be done inside
sata_phy_resume().

Three default debounce timing parameters are defined to be used by
hot/boot plug.  As resume failure during probing will be properly
handled as errors, timeout doesn't have to be long as before.
probeinit() uses the same timeout to retain the original behavior.

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