[PATCH] libata: fix eh_skip_recovery condition
authorTejun Heo <htejun@gmail.com>
Mon, 10 Jul 2006 14:18:23 +0000 (23:18 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 19 Jul 2006 18:06:53 +0000 (14:06 -0400)
* (ata_dev_absent() || ata_dev_ready()) test doesn't indicate
  SUSPENDED state properly.  Fix it.

* Link resuming resets shouldn't be skipped.  Don't skip recovery on
  EHI_RESUME_LINK.  This doesn't matter for host ports as EHI_RESUME
  always coincides with EHI_HOTPLUGGED which makes attached disabled
  devices vacant.  However, PMP reset causes non-hotplug link-resuming
  resets which shouldn't be skipped.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

No differences found