diff options
author | Tejun Heo <htejun@gmail.com> | 2007-09-03 12:32:57 +0900 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-12 14:55:39 -0400 |
commit | 05027adccc09401a7e31d5ef51040dc75ab03c22 (patch) | |
tree | 83fbb8e65d26e10e1fd74377bc13fd358a61c13e /drivers/ata/sata_mv.c | |
parent | c728a9149f519cbb9f610962873f4e22ed4a6efd (diff) |
libata: remiplement ata_hpa_resize()
This patch reimplement ata_hpa_resize() such that...
* All HPA related decisions are made inside ata_hpa_resize() proper.
ata_hpa_resize() returns 0 if configuration can proceed, -errno if
device needs to be reset and reconfigured.
* All errors are handled properly. If HPA unlocking isn't requested,
HPA handling is disabled automatically to avoid unnecessary device
detection failure.
* Messages are trimmed. HPA detection message is printed only during
initial configuration. HPA unlocked message is printed only during
initial configuration or unlocking results in different size.
* Instead of using sectors returned in TF of SET_MAX, re-read IDENTIFY
data as that's the value the device is going to use.
* It's called early during ata_dev_configure() as IDENTIFY data might
change after resizing.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_mv.c')
0 files changed, 0 insertions, 0 deletions