]> err.no Git - linux-2.6/commit
libata: request PHY speed configuration on SControl access failure
authorTejun Heo <htejun@gmail.com>
Wed, 31 Oct 2007 01:17:06 +0000 (10:17 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 3 Nov 2007 12:47:27 +0000 (08:47 -0400)
commitdb64bcf387aae6c7afad122a529d7d0513d3c5db
tree62fcd54c4f1d1c03d0360e37dc7f198a8ab8ae33
parentdfcc173d71b029eb2b10cf99bb5b4e8749e09799
libata: request PHY speed configuration on SControl access failure

In sata_set_spd_needed(), if SControl read failed, it returned 0 and
skipped PHY speed configuration.  However, if SControl access fails,
it's far more logical to request PHY speed configuration.  Reverse the
logic.

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