diff options
author | Mario Schwalbe <schwalbe@inf.tu-dresden.de> | 2009-01-06 11:20:57 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-01-06 11:20:57 -0500 |
commit | 744a82b004b0a08d55f579daa55e32d963353edc (patch) | |
tree | d40f26d3231a223b89382f666893d8985df056d3 | |
parent | 2bd24a1cfc99d242c2cff9a6b74ca49fcaac3fb6 (diff) |
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: Mario 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: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r-- | drivers/ide/ide-probe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index e688ca1c967c..f71f4eb4705a 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -849,8 +849,7 @@ static void ide_port_tune_devices(ide_hwif_t *hwif) | |||
849 | } | 849 | } |
850 | 850 | ||
851 | ide_port_for_each_dev(i, drive, hwif) { | 851 | ide_port_for_each_dev(i, drive, hwif) { |
852 | if ((hwif->host_flags & IDE_HFLAG_NO_IO_32BIT) || | 852 | if (hwif->host_flags & IDE_HFLAG_NO_IO_32BIT) |
853 | drive->id[ATA_ID_DWORD_IO]) | ||
854 | drive->dev_flags |= IDE_DFLAG_NO_IO_32BIT; | 853 | drive->dev_flags |= IDE_DFLAG_NO_IO_32BIT; |
855 | else | 854 | else |
856 | drive->dev_flags &= ~IDE_DFLAG_NO_IO_32BIT; | 855 | drive->dev_flags &= ~IDE_DFLAG_NO_IO_32BIT; |