[PATCH] Relax idecd dma alignment check

Only the address needs alignment of mask bits, length should work with
a relaxed alignment check.

Signed-off-by: Jens Axboe <axboe@suse.de>

[ This is take 2: make the length check be for 16-byte alignment, not
just word alignment. That should hopefully keep everybody happy,
while still allowing CD writing with DMA ]

Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Jens Axboe and committed by
Linus Torvalds
4e7c6816 05fda3b1

+1 -1
+1 -1
drivers/ide/ide-cd.c
··· 1936 1936 * NOTE! The "len" and "addr" checks should possibly have 1937 1937 * separate masks. 1938 1938 */ 1939 - if ((rq->data_len & mask) || (addr & mask)) 1939 + if ((rq->data_len & 15) || (addr & mask)) 1940 1940 info->dma = 0; 1941 1941 } 1942 1942