Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126424
b: refs/heads/master
c: 42cf261
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jan 6, 2009
1 parent c0c6b02 commit 106fca0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: b46f205da647608a4064ce0a0acb07a8c74c6f23
refs/heads/master: 42cf2611b28602cf4c9dc7c22bc8653a10dff60d
10 changes: 6 additions & 4 deletions trunk/drivers/ide/ide-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,9 @@ void do_ide_request(struct request_queue *q)
spin_lock_irq(&hwgroup->lock);

if (!ide_lock_hwgroup(hwgroup)) {
ide_hwif_t *prev_port;
repeat:
prev_port = hwgroup->hwif;
hwgroup->rq = NULL;

if (drive->dev_flags & IDE_DFLAG_SLEEPING) {
Expand All @@ -734,13 +736,13 @@ void do_ide_request(struct request_queue *q)
}
}

if (hwif != hwgroup->hwif) {
if (hwif != prev_port) {
/*
* set nIEN for previous hwif, drives in the
* set nIEN for previous port, drives in the
* quirk_list may not like intr setups/cleanups
*/
if (drive->quirk_list == 0)
hwif->tp_ops->set_irq(hwif, 0);
if (hwgroup->drive->quirk_list == 0)
prev_port->tp_ops->set_irq(prev_port, 0);
}
hwgroup->hwif = hwif;
hwgroup->drive = drive;
Expand Down

0 comments on commit 106fca0

Please sign in to comment.