Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30273
b: refs/heads/master
c: 17c1033
h: refs/heads/master
i:
  30271: 9144775
v: v3
  • Loading branch information
Sergei Shtylyov authored and Linus Torvalds committed Jun 26, 2006
1 parent 72bcbef commit 7729e71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 178184b60979992508130741f16499c360bc9c9a
refs/heads/master: 17c1033d331a430ce631805e15215e63b4cce764
8 changes: 7 additions & 1 deletion trunk/drivers/ide/ide-timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ static int ide_timing_compute(ide_drive_t *drive, short speed, struct ide_timing
if (!(s = ide_timing_find_mode(speed)))
return -EINVAL;

/*
* Copy the timing from the table.
*/

*t = *s;

/*
* If the drive is an EIDE drive, it can tell us it needs extended
* PIO/MWDMA cycle timing.
Expand Down Expand Up @@ -247,7 +253,7 @@ static int ide_timing_compute(ide_drive_t *drive, short speed, struct ide_timing
* Convert the timing to bus clock counts.
*/

ide_timing_quantize(s, t, T, UT);
ide_timing_quantize(t, t, T, UT);

/*
* Even in DMA/UDMA modes we still use PIO access for IDENTIFY, S.M.A.R.T
Expand Down

0 comments on commit 7729e71

Please sign in to comment.