Messages in this thread | | | Subject | Re: [PATCH] ide_dma_speed() fixes | From | Alan Cox <> | Date | Mon, 15 May 2006 16:27:04 +0100 |
| |
On Llu, 2006-05-15 at 08:00 -0700, Andrew Morton wrote: > > /* Capable of UltraDMA modes? */ > - if (id->field_valid & 4) > - ultra_mask = id->dma_ultra & hwif->ultra_mask; > - else > + ultra_mask = id->dma_ultra & hwif->ultra_mask; > + > + if (!(id->field_valid & 4)) > mode = 0; /* fallback to MW/SW DMA if no UltraDMA */ >
Looks fine to me, id-> is always the full 512 bytes of data so its safe to do that.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |