Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71768
b: refs/heads/master
c: a34a875
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 19, 2007
1 parent ca525ff commit 78341bc
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2047e15be4247efd430d067aae5bd24c11d99999
refs/heads/master: a34a8751f312bd4674d48d63556efa8f0e3a1021
6 changes: 4 additions & 2 deletions trunk/drivers/ide/legacy/dtc2278.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,20 @@ static void sub22 (char b, char c)
}
}

static DEFINE_SPINLOCK(dtc2278_lock);

static void dtc2278_set_pio_mode(ide_drive_t *drive, const u8 pio)
{
unsigned long flags;

if (pio >= 3) {
spin_lock_irqsave(&ide_lock, flags);
spin_lock_irqsave(&dtc2278_lock, flags);
/*
* This enables PIO mode4 (3?) on the first interface
*/
sub22(1,0xc3);
sub22(0,0xa0);
spin_unlock_irqrestore(&ide_lock, flags);
spin_unlock_irqrestore(&dtc2278_lock, flags);
} else {
/* we don't know how to set it back again.. */
}
Expand Down

0 comments on commit 78341bc

Please sign in to comment.