Commit 054e5f61 authored by Ondrej Zary's avatar Ondrej Zary Committed by Jeff Garzik

libata: Fix LBA48 on pata_it821x RAID volumes.

[http://lkml.org/lkml/2008/10/18/82]
Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
Acked-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 90484ebf
...@@ -557,9 +557,8 @@ static unsigned int it821x_read_id(struct ata_device *adev, ...@@ -557,9 +557,8 @@ static unsigned int it821x_read_id(struct ata_device *adev,
if (strstr(model_num, "Integrated Technology Express")) { if (strstr(model_num, "Integrated Technology Express")) {
/* Set feature bits the firmware neglects */ /* Set feature bits the firmware neglects */
id[49] |= 0x0300; /* LBA, DMA */ id[49] |= 0x0300; /* LBA, DMA */
id[82] |= 0x0400; /* LBA48 */
id[83] &= 0x7FFF; id[83] &= 0x7FFF;
id[83] |= 0x4000; /* Word 83 is valid */ id[83] |= 0x4400; /* Word 83 is valid and LBA48 */
id[86] |= 0x0400; /* LBA48 on */ id[86] |= 0x0400; /* LBA48 on */
id[ATA_ID_MAJOR_VER] |= 0x1F; id[ATA_ID_MAJOR_VER] |= 0x1F;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment