lkml.org 
[lkml]   [2006]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ide_dma_speed() fixes
From
Date
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/

\
 
 \ /
  Last update: 2006-05-15 17:17    [W:0.056 / U:5.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site