| Submitter | Bartlomiej Zolnierkiewicz |
|---|---|
| Date | Jan. 18, 2010, 5:20 p.m. |
| Message ID | <20100118172058.14623.81306.sendpatchset@localhost> |
| Download | mbox | patch |
| Permalink | /patch/43105/ |
| State | Accepted |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
Index: b/drivers/ide/ide-timings.c =================================================================== --- a/drivers/ide/ide-timings.c +++ b/drivers/ide/ide-timings.c @@ -189,8 +189,7 @@ int ide_timing_compute(ide_drive_t *driv * DMA cycle timing is slower/equal than the fastest PIO timing. */ if (speed >= XFER_SW_DMA_0) { - u8 pio = ide_get_best_pio_mode(drive, 255, 5); - ide_timing_compute(drive, XFER_PIO_0 + pio, &p, T, UT); + ide_timing_compute(drive, drive->pio_mode, &p, T, UT); ide_timing_merge(&p, t, t, IDE_TIMING_ALL); }