From: Tejun Heo Date: Thu, 24 Feb 2011 18:30:37 +0000 (+0100) Subject: libata: fix hotplug for drivers which don't implement LPM X-Git-Tag: v2.6.37.5~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=873cd78f82db88cac1109a45a348248fcd4a84de;p=pandora-kernel.git libata: fix hotplug for drivers which don't implement LPM commit eb0e85e36b971ec31610eda7e3ff5c11c1c44785 upstream. ata_eh_analyze_serror() suppresses hotplug notifications if LPM is being used because LPM generates spurious hotplug events. It compared whether link->lpm_policy was different from ATA_LPM_MAX_POWER to determine whether LPM is enabled; however, this is incorrect as for drivers which don't implement LPM, lpm_policy is always ATA_LPM_UNKNOWN. This disabled hotplug detection for all drivers which don't implement LPM. Fix it by comparing whether lpm_policy is greater than ATA_LPM_MAX_POWER. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed