[PATCH] relax ide-cd dma restrictions
authorJens Axboe <axboe@suse.de>
Wed, 25 May 2005 15:00:15 +0000 (17:00 +0200)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 25 May 2005 17:17:08 +0000 (10:17 -0700)
This has been sitting for a while, and is causing lots of grief for
people burning CDs.  It relaxes the dma restriction for ide-cd,
requiring only the length to be 32-byte aligned, address should be fine
at normal double word alignment.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/ide-cd.c

index 33a020f..4f7ce70 100644 (file)
@@ -1933,7 +1933,7 @@ static ide_startstop_t cdrom_do_block_pc(ide_drive_t *drive, struct request *rq)
                /*
                 * check if dma is safe
                 */
-               if ((rq->data_len & mask) || (addr & mask))
+               if ((rq->data_len & 3) || (addr & mask))
                        info->dma = 0;
        }