]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: IDE_HFLAG_SERIALIZE_DMA bugfix
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 4 May 2008 15:03:41 +0000 (17:03 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 4 May 2008 15:03:41 +0000 (17:03 +0200)
commit1024c5f4be4fc5b00337464fb8a442bebf15df68
tree2304eeb193c66540ce1f6c767cae97d40d1cd7d6
parentafa26be86b65a7183ceac29bdf1f51d6fc6932f0
ide: IDE_HFLAG_SERIALIZE_DMA bugfix

Patch re-ordering could be harmful:

commit 1fd1890594bd355a4217f5658a34763e77decee3
Author: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Date:   Sat Apr 26 22:25:24 2008 +0200

    ide: add IDE_HFLAG_SERIALIZE_DMA host flag
...

is buggy because ->init_dma method / ide_hwif_setup_dma() is called
before IDE_HFLAG_SERIALIZE_DMA host flag is checked.

Fix it by checking IDE_HFLAG_SERIALIZE[_DMA] after DMA initialization.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-probe.c