]> git.baikalelectronics.ru Git - kernel.git/commit
libata: fix EH device failure handling
authorTejun Heo <tj@kernel.org>
Thu, 29 Jan 2009 11:31:29 +0000 (20:31 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 3 Feb 2009 04:02:57 +0000 (23:02 -0500)
commitdff3216da983c172939232bacf72a33e84774e1d
tree70cc96e6ad14bf6ddbddc5d824e2e104a7387f66
parent9a40d5cc248f25930103e015600eebcdadb2f620
libata: fix EH device failure handling

The dev->pio_mode > XFER_PIO_0 test is there to avoid unnecessary
speed down warning messages but it accidentally disabled SATA link spd
down during configuration phase after reset where PIO mode is always
zero.

This patch fixes the problem by moving the test where it belongs.
This makes libata probing sequence behave better when the connection
is flaky at higher link speeds which isn't too uncommon for eSATA
devices.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c