Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23453
b: refs/heads/master
c: 208a08f
h: refs/heads/master
i:
  23451: 573cefd
v: v3
  • Loading branch information
Kumar Gala authored and Linus Torvalds committed Mar 24, 2006
1 parent c1c8f80 commit 3e26c6a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f751d50f6dea1446797c9a31f5c183002e5780a8
refs/heads/master: 208a08f7cc2a8932ed76162d9844f9ae7d7fc015
2 changes: 0 additions & 2 deletions trunk/drivers/ide/ide-disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,6 @@ static void idedisk_setup (ide_drive_t *drive)
ide_dma_verbose(drive);
printk("\n");

drive->no_io_32bit = id->dword_io ? 1 : 0;

/* write cache enabled? */
if ((id->csfo & 1) || (id->cfs_enable_1 & (1 << 5)))
drive->wcache = 1;
Expand Down
9 changes: 9 additions & 0 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,15 @@ static void probe_hwif(ide_hwif_t *hwif)
}
}
}

for (unit = 0; unit < MAX_DRIVES; ++unit) {
ide_drive_t *drive = &hwif->drives[unit];

if (hwif->no_io_32bit)
drive->no_io_32bit = 1;
else
drive->no_io_32bit = drive->id->dword_io ? 1 : 0;
}
}

static int hwif_init(ide_hwif_t *hwif);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ typedef struct hwif_s {
unsigned no_dsc : 1; /* 0 default, 1 dsc_overlap disabled */
unsigned auto_poll : 1; /* supports nop auto-poll */
unsigned sg_mapped : 1; /* sg_table and sg_nents are ready */
unsigned no_io_32bit : 1; /* 1 = can not do 32-bit IO ops */

struct device gendev;
struct completion gendev_rel_comp; /* To deal with device release() */
Expand Down

0 comments on commit 3e26c6a

Please sign in to comment.