]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/ata/sata_sil24.c
[PATCH] sata_sil24: exit early from softreset if SStatus reports no device
authorTejun Heo <htejun@gmail.com>
Sat, 11 Mar 2006 02:42:34 +0000 (11:42 +0900)
committerJeff Garzik <jeff@garzik.org>
Sun, 12 Mar 2006 00:29:42 +0000 (19:29 -0500)
commit10d996ad1990ec2338c463042db6d5ef4f347187
treea06a602f278f820475f16523e12927b5abb980c4
parent75deb6fa985bd3162b9472f1fc394e23294da816
[PATCH] sata_sil24: exit early from softreset if SStatus reports no device

sata_sil24 softreset routine used to check sata_dev_present() after
SRST is complete in the hope that SRST may do some good even when
SStatus reports no device.  This is okay as long as SRST timeout is
short (> 100ms in the current code) but it seems that not all SATA
devices are happy with short SRST timeout.

This patch makes softreset exit early without performing actual SRST
if SStatus reports no device in preparation for lengthening SRST
timeout.

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