Commit 744a82b0 authored by Mario Schwalbe's avatar Mario Schwalbe Committed by Bartlomiej Zolnierkiewicz
Browse files

ide: Fix drive's DWORD-IO handling



According the documentation, id[ATA_ID_DWORD_IO] is non-zero if
the drive supports dword IO, while the code disables support by
setting IDE_DFLAG_NO_IO_32BIT. In addition, this word has been
reused by the ATA8 specification. This patch fixes both cases.

Signed-off-by: default avatarMario Schwalbe <schwalbe@inf.tu-dresden.de>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
[bart: remove id[ATA_ID_DWORD_IO] check altogether per Sergei's suggestion]
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 2bd24a1c
...@@ -849,8 +849,7 @@ static void ide_port_tune_devices(ide_hwif_t *hwif) ...@@ -849,8 +849,7 @@ static void ide_port_tune_devices(ide_hwif_t *hwif)
} }
ide_port_for_each_dev(i, drive, hwif) { ide_port_for_each_dev(i, drive, hwif) {
if ((hwif->host_flags & IDE_HFLAG_NO_IO_32BIT) || if (hwif->host_flags & IDE_HFLAG_NO_IO_32BIT)
drive->id[ATA_ID_DWORD_IO])
drive->dev_flags |= IDE_DFLAG_NO_IO_32BIT; drive->dev_flags |= IDE_DFLAG_NO_IO_32BIT;
else else
drive->dev_flags &= ~IDE_DFLAG_NO_IO_32BIT; drive->dev_flags &= ~IDE_DFLAG_NO_IO_32BIT;
......
Supports Markdown
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