From: Tejun Heo Date: Fri, 11 May 2007 12:46:51 +0000 (+0200) Subject: libata: give devices one last chance even if recovery failed with -EINVAL X-Git-Tag: v2.6.22-rc1~19^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8575b814097af648dad284bd3087875a11b13d18;p=pandora-kernel.git libata: give devices one last chance even if recovery failed with -EINVAL After certain errors, some devices report complete garbage on IDENTIFY. This can cause ata_dev_read_id() to fail with -EINVAL resulting in immediate disabling of the device. Give the device one last chance after -EINVAL to allow recovery from such situations. As -EINVAL is triggered very rarely, this shouldn't cause any noticeable affect on more common error paths. Signed-off-by: Tejun Heo Cc: Harald Dunkel Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed