diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 17:55:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 17:55:09 -0400 |
commit | b5684b83b1e1579bbbc80e703e990c0cccf5892c (patch) | |
tree | 3f1b62b2320bce4d658d2ad0d4b77856499ac533 /drivers/ide/ide-taskfile.c | |
parent | 1481b9109fe771ec8b035d7760f42e36d2bed5d4 (diff) | |
parent | 1b8ebad87b459e2e1333fbf28005977245ff5402 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (76 commits)
ide: use proper printk() KERN_* levels in ide-probe.c
ide: fix for EATA SCSI HBA in ATA emulating mode
ide: remove stale comments from drivers/ide/Makefile
ide: enable local IRQs in all handlers for TASKFILE_NO_DATA data phase
ide-scsi: remove kmalloced struct request
ht6560b: remove old history
ht6560b: update email address
ide-cd: fix oops when using growisofs
gayle: release resources on ide_host_add() failure
palm_bk3710: add UltraDMA/100 support
ide: trivial sparse annotations
ide: ide-tape.c sparse annotations and unaligned access removal
ide: drop 'name' parameter from ->init_chipset method
ide: prefix messages from IDE PCI host drivers by driver name
it821x: remove DECLARE_ITE_DEV() macro
it8213: remove DECLARE_ITE_DEV() macro
ide: include PCI device name in messages from IDE PCI host drivers
ide: remove <asm/ide.h> for some archs
ide-generic: remove ide_default_{io_base,irq}() inlines (take 3)
ide-generic: is no longer needed on ppc32
...
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r-- | drivers/ide/ide-taskfile.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index aeddbbd69e86..7fb6f1c86272 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c | |||
@@ -126,7 +126,10 @@ EXPORT_SYMBOL_GPL(do_rw_taskfile); | |||
126 | static ide_startstop_t set_multmode_intr(ide_drive_t *drive) | 126 | static ide_startstop_t set_multmode_intr(ide_drive_t *drive) |
127 | { | 127 | { |
128 | ide_hwif_t *hwif = drive->hwif; | 128 | ide_hwif_t *hwif = drive->hwif; |
129 | u8 stat = hwif->tp_ops->read_status(hwif); | 129 | u8 stat; |
130 | |||
131 | local_irq_enable_in_hardirq(); | ||
132 | stat = hwif->tp_ops->read_status(hwif); | ||
130 | 133 | ||
131 | if (OK_STAT(stat, READY_STAT, BAD_STAT)) | 134 | if (OK_STAT(stat, READY_STAT, BAD_STAT)) |
132 | drive->mult_count = drive->mult_req; | 135 | drive->mult_count = drive->mult_req; |
@@ -147,6 +150,8 @@ static ide_startstop_t set_geometry_intr(ide_drive_t *drive) | |||
147 | int retries = 5; | 150 | int retries = 5; |
148 | u8 stat; | 151 | u8 stat; |
149 | 152 | ||
153 | local_irq_enable_in_hardirq(); | ||
154 | |||
150 | while (1) { | 155 | while (1) { |
151 | stat = hwif->tp_ops->read_status(hwif); | 156 | stat = hwif->tp_ops->read_status(hwif); |
152 | if ((stat & BUSY_STAT) == 0 || retries-- == 0) | 157 | if ((stat & BUSY_STAT) == 0 || retries-- == 0) |
@@ -170,7 +175,10 @@ static ide_startstop_t set_geometry_intr(ide_drive_t *drive) | |||
170 | static ide_startstop_t recal_intr(ide_drive_t *drive) | 175 | static ide_startstop_t recal_intr(ide_drive_t *drive) |
171 | { | 176 | { |
172 | ide_hwif_t *hwif = drive->hwif; | 177 | ide_hwif_t *hwif = drive->hwif; |
173 | u8 stat = hwif->tp_ops->read_status(hwif); | 178 | u8 stat; |
179 | |||
180 | local_irq_enable_in_hardirq(); | ||
181 | stat = hwif->tp_ops->read_status(hwif); | ||
174 | 182 | ||
175 | if (!OK_STAT(stat, READY_STAT, BAD_STAT)) | 183 | if (!OK_STAT(stat, READY_STAT, BAD_STAT)) |
176 | return ide_error(drive, "recal_intr", stat); | 184 | return ide_error(drive, "recal_intr", stat); |