[PATCH] ahci: do not fail softreset if PHY reports no device
authorTejun Heo <htejun@gmail.com>
Sun, 2 Apr 2006 16:58:06 +0000 (01:58 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 4 Apr 2006 12:44:24 +0000 (08:44 -0400)
commitc2a6585296009379e0f4eff39cdcb108b457ebf2
treed6c123aca21e0e54a3b2a52c93f26b6352b068de
parent95de719adc94392a95c3c4d0a2d6b8b1ea39d236
[PATCH] ahci: do not fail softreset if PHY reports no device

All softreset methods are responsible for detecting device presence
and succeed softreset in such cases.  AHCI didn't use to check for
device presence before proceeding with softreset and this caused
unnecessary reset retrials during probing.  This patch adds presence
detection to AHCI softreset.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/ahci.c