Files
linux/include
Tejun Heo 6ddcd3b020 libata: during revalidation, check n_sectors after device is configured
Device might be resized during ata_dev_configure() due to HPA or
(later) ACPI _GTF.  Currently it's worked around by caching n_sectors
before turning off HPA.  The cached original size is overwritten if
the device is reconfigured without being hardreset - which always
happens after configuring trasnfer mode.  If the device gets hardreset
for some reason after that, revalidation fails with -ENODEV.

This patch makes size checking more robust by moving n_sectors check
from ata_dev_reread_id() to ata_dev_revalidate() after the device is
fully configured.  No matter what happens during configuration, a
device must have the same n_sectors after fully configured to be
treated as the same device.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-05-16 01:18:30 -04:00
..
2007-05-09 23:34:35 -04:00
2007-05-11 08:29:34 -07:00
2007-05-09 12:30:56 -07:00
2007-05-11 08:29:34 -07:00
2007-05-11 08:29:34 -07:00
2007-05-15 08:54:00 -07:00
2007-05-15 08:54:00 -07:00
2007-05-08 11:15:20 -07:00
2007-05-11 08:29:34 -07:00
2007-05-10 21:08:37 +10:00
2007-05-11 08:29:34 -07:00
2007-05-11 08:29:34 -07:00
2007-05-14 09:55:35 +09:00
2007-05-11 08:29:34 -07:00
2007-05-11 08:29:34 -07:00
2007-05-11 08:29:34 -07:00
2007-04-27 14:23:33 +03:00
2007-05-07 12:12:50 -07:00
2007-05-11 16:56:18 +02:00