Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133405
b: refs/heads/master
c: f323b80
h: refs/heads/master
i:
  133403: c234ca1
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent 7535a67 commit df4dad8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 1bd4c1f4fe6607a0253d1318847b618a2a598612
refs/heads/master: f323b80dceaca858f8e240ca098681fcfe7fd3c4
4 changes: 3 additions & 1 deletion trunk/drivers/ide/ide-iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,15 @@ int ide_driveid_update(ide_drive_t *drive)
}

local_irq_save(flags);
SELECT_MASK(drive, 0);
tp_ops->input_data(drive, NULL, id, SECTOR_SIZE);
(void)tp_ops->read_status(hwif); /* clear drive IRQ */
local_irq_enable();
local_irq_restore(flags);

ide_fix_driveid(id);

SELECT_MASK(drive, 0);

drive->id[ATA_ID_UDMA_MODES] = id[ATA_ID_UDMA_MODES];
drive->id[ATA_ID_MWDMA_MODES] = id[ATA_ID_MWDMA_MODES];
drive->id[ATA_ID_SWDMA_MODES] = id[ATA_ID_SWDMA_MODES];
Expand Down

0 comments on commit df4dad8

Please sign in to comment.