| Submitter | Bartlomiej Zolnierkiewicz |
|---|---|
| Date | Oct. 13, 2011, 1:17 p.m. |
| Message ID | <201110131517.33197.bzolnier@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/119504/ |
| State | Not Applicable |
| Delegated to: | David Miller |
| Headers | show |
Comments
On Thu, 13 Oct 2011 15:17:32 +0200 Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> wrote: > From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> > Subject: [PATCH] libata: ata_timing_compute() fixup > > XFER_SW_DMA_0 mode should be excluded from the extended cycle timing > computations. We don't support SWDMA but yes that is a bug Acked-by: Alan Cox <alan@linux.intel.com> -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
Index: b/drivers/ata/libata-core.c =================================================================== --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3232,7 +3232,7 @@ int ata_timing_compute(struct ata_device if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ memset(&p, 0, sizeof(p)); - if (speed >= XFER_PIO_0 && speed <= XFER_SW_DMA_0) { + if (speed >= XFER_PIO_0 && speed < XFER_SW_DMA_0) { if (speed <= XFER_PIO_2) p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; else if ((speed <= XFER_PIO_4) ||