diff options
-rw-r--r-- | drivers/ide/ide-disk.c | 2 | ||||
-rw-r--r-- | drivers/ide/ide-probe.c | 9 | ||||
-rw-r--r-- | include/linux/ide.h | 1 |
3 files changed, 10 insertions, 2 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index e238b7da824b..ccf528d733bf 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -978,8 +978,6 @@ static void idedisk_setup (ide_drive_t *drive) | |||
978 | ide_dma_verbose(drive); | 978 | ide_dma_verbose(drive); |
979 | printk("\n"); | 979 | printk("\n"); |
980 | 980 | ||
981 | drive->no_io_32bit = id->dword_io ? 1 : 0; | ||
982 | |||
983 | /* write cache enabled? */ | 981 | /* write cache enabled? */ |
984 | if ((id->csfo & 1) || (id->cfs_enable_1 & (1 << 5))) | 982 | if ((id->csfo & 1) || (id->cfs_enable_1 & (1 << 5))) |
985 | drive->wcache = 1; | 983 | drive->wcache = 1; |
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 427d1c204174..1b7b4c531bc2 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -858,6 +858,15 @@ static void probe_hwif(ide_hwif_t *hwif) | |||
858 | } | 858 | } |
859 | } | 859 | } |
860 | } | 860 | } |
861 | |||
862 | for (unit = 0; unit < MAX_DRIVES; ++unit) { | ||
863 | ide_drive_t *drive = &hwif->drives[unit]; | ||
864 | |||
865 | if (hwif->no_io_32bit) | ||
866 | drive->no_io_32bit = 1; | ||
867 | else | ||
868 | drive->no_io_32bit = drive->id->dword_io ? 1 : 0; | ||
869 | } | ||
861 | } | 870 | } |
862 | 871 | ||
863 | static int hwif_init(ide_hwif_t *hwif); | 872 | static int hwif_init(ide_hwif_t *hwif); |
diff --git a/include/linux/ide.h b/include/linux/ide.h index a7fc4cc79b23..8d2db412ba9c 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -792,6 +792,7 @@ typedef struct hwif_s { | |||
792 | unsigned no_dsc : 1; /* 0 default, 1 dsc_overlap disabled */ | 792 | unsigned no_dsc : 1; /* 0 default, 1 dsc_overlap disabled */ |
793 | unsigned auto_poll : 1; /* supports nop auto-poll */ | 793 | unsigned auto_poll : 1; /* supports nop auto-poll */ |
794 | unsigned sg_mapped : 1; /* sg_table and sg_nents are ready */ | 794 | unsigned sg_mapped : 1; /* sg_table and sg_nents are ready */ |
795 | unsigned no_io_32bit : 1; /* 1 = can not do 32-bit IO ops */ | ||
795 | 796 | ||
796 | struct device gendev; | 797 | struct device gendev; |
797 | struct completion gendev_rel_comp; /* To deal with device release() */ | 798 | struct completion gendev_rel_comp; /* To deal with device release() */ |