]> git.baikalelectronics.ru Git - kernel.git/commit
ahci: use 0x80 as wait stat value instead of 0xff
authorTejun Heo <htejun@gmail.com>
Fri, 26 Jan 2007 06:37:20 +0000 (15:37 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 26 Jan 2007 22:24:07 +0000 (17:24 -0500)
commitef3f165de1d99e7f91680e45acf9860f3850c08e
treed8e10936d9a40e8b5d0ac86461b0b760e98c6367
parent7f32038c7b95caa35da769b1bb025b0327c31cf6
ahci: use 0x80 as wait stat value instead of 0xff

Before hardreset, ahci initialized stat part of received FIS area to
0xff to wait for the first D2H Reg FIS which would change the value to
device ready state.  This used to work but now libata considers status
value of 0xff as device not present making this wait prone to failure.

This patch makes ahci use 0x80 for the wait stat value instead of
0xff to fix the above problem.

Signed-off-by: Tejun Heo <htejun@gmail.com>
 drivers/ata/ahci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/ahci.c