]> git.baikalelectronics.ru Git - kernel.git/commit
libata: improve HPA error handling
authorTejun Heo <htejun@gmail.com>
Sun, 23 Mar 2008 12:05:15 +0000 (21:05 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 25 Mar 2008 02:09:40 +0000 (22:09 -0400)
commit321150d4d59740ea9698432f81464df8b0fc5e1a
treef015dade6caf49c7fbff2d6c26a040375c368ab1
parenta02af4bfaa9ce36c57a1b8385957f1f1195b64a7
libata: improve HPA error handling

There's no point in retrying and eventually failing device detection
when the device rejects READ_NATIVE_MAX[_EXT].  Disable HPA unlocking
if READ_NATIVE_MAX[_EXT] is rejected as done when SET_MAX[_EXT] is
rejected.

This allows some old drives to work even if they aren't blacklisted.

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