Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71767
b: refs/heads/master
c: 2047e15
h: refs/heads/master
i:
  71765: 9f1aec7
  71763: 498bb48
  71759: 190de57
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 19, 2007
1 parent b58df13 commit ca525ff
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: 8562043606430185cad26d085d46adcc7ad67fd1
refs/heads/master: 2047e15be4247efd430d067aae5bd24c11d99999
6 changes: 4 additions & 2 deletions trunk/drivers/ide/legacy/ali14xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ static void outReg (u8 data, u8 reg)
outb_p(data, dataPort);
}

static DEFINE_SPINLOCK(ali14xx_lock);

/*
* Set PIO mode for the specified drive.
* This function computes timing parameters
Expand Down Expand Up @@ -129,14 +131,14 @@ static void ali14xx_set_pio_mode(ide_drive_t *drive, const u8 pio)

/* stuff timing parameters into controller registers */
driveNum = (HWIF(drive)->index << 1) + drive->select.b.unit;
spin_lock_irqsave(&ide_lock, flags);
spin_lock_irqsave(&ali14xx_lock, flags);
outb_p(regOn, basePort);
outReg(param1, regTab[driveNum].reg1);
outReg(param2, regTab[driveNum].reg2);
outReg(param3, regTab[driveNum].reg3);
outReg(param4, regTab[driveNum].reg4);
outb_p(regOff, basePort);
spin_unlock_irqrestore(&ide_lock, flags);
spin_unlock_irqrestore(&ali14xx_lock, flags);
}

/*
Expand Down

0 comments on commit ca525ff

Please sign in to comment.