Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137628
b: refs/heads/master
c: d15a613
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent c57946d commit 4f8a380
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 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: 088b1b88609ce89b6ab19d114cdbec94a44aa22c
refs/heads/master: d15a613ba01ff2b209ecad7a38ccbb23b3b06c92
3 changes: 0 additions & 3 deletions trunk/arch/m68k/include/asm/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,5 @@ ide_get_lock(irq_handler_t handler, void *data)
}
#endif /* CONFIG_BLK_DEV_FALCON_IDE */

#define IDE_ARCH_ACK_INTR
#define ide_ack_intr(hwif) ((hwif)->ack_intr ? (hwif)->ack_intr(hwif) : 1)

#endif /* __KERNEL__ */
#endif /* _M68K_IDE_H */
5 changes: 3 additions & 2 deletions trunk/drivers/ide/ide-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,8 @@ void ide_timer_expiry (unsigned long data)
} else if (drive_is_ready(drive)) {
if (drive->waiting_for_dma)
hwif->dma_ops->dma_lost_irq(drive);
(void)ide_ack_intr(hwif);
if (hwif->ack_intr)
hwif->ack_intr(hwif);
printk(KERN_WARNING "%s: lost interrupt\n",
drive->name);
startstop = handler(drive);
Expand Down Expand Up @@ -854,7 +855,7 @@ irqreturn_t ide_intr (int irq, void *dev_id)

spin_lock_irqsave(&hwif->lock, flags);

if (!ide_ack_intr(hwif))
if (hwif->ack_intr && hwif->ack_intr(hwif) == 0)
goto out;

handler = hwif->handler;
Expand Down
5 changes: 0 additions & 5 deletions trunk/include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,6 @@ static inline void ide_std_init_ports(hw_regs_t *hw,

#define MAX_HWIFS 10

/* Currently only m68k, apus and m8xx need it */
#ifndef IDE_ARCH_ACK_INTR
# define ide_ack_intr(hwif) (1)
#endif

/* Currently only Atari needs it */
#ifndef IDE_ARCH_LOCK
# define ide_release_lock() do {} while (0)
Expand Down

0 comments on commit 4f8a380

Please sign in to comment.