Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14293
b: refs/heads/master
c: 75b1f2f
h: refs/heads/master
i:
  14291: 1f7f258
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Nov 16, 2005
1 parent 93e9109 commit 1e4a5a5
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: d10cb35a876c72b4b6711a366e341a1e4d8aa709
refs/heads/master: 75b1f2f865c6e6c6c04e2779750192b8d3d504e8
6 changes: 4 additions & 2 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1570,11 +1570,13 @@ int ata_timing_compute(struct ata_device *adev, unsigned short speed,

/*
* Find the mode.
*/
*/

if (!(s = ata_timing_find_mode(speed)))
return -EINVAL;

memcpy(t, s, sizeof(*s));

/*
* If the drive is an EIDE drive, it can tell us it needs extended
* PIO/MW_DMA cycle timing.
Expand All @@ -1595,7 +1597,7 @@ int ata_timing_compute(struct ata_device *adev, unsigned short speed,
* Convert the timing to bus clock counts.
*/

ata_timing_quantize(s, t, T, UT);
ata_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 1e4a5a5

Please sign in to comment.