From: Jens Axboe Date: Wed, 25 May 2005 15:00:15 +0000 (+0200) Subject: [PATCH] relax ide-cd dma restrictions X-Git-Tag: v2.6.12-rc6~161 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=384f1fcd2db8bc5a15f20f10793d8e1c82acd6c5;p=~andy%2Flinux [PATCH] relax ide-cd dma restrictions 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 33a020faeab..4f7ce705622 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -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; }