]> git.baikalelectronics.ru Git - kernel.git/commit
hpt34x: fix CONFIG_HPT34X_AUTODMA=n handling
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 20 Aug 2007 20:42:57 +0000 (22:42 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 20 Aug 2007 20:42:57 +0000 (22:42 +0200)
commitb01df9fef841c077cc208684b6b5f822f332a9aa
tree1061d01662114d064e60cc29611ab330c900f89e
parent606d0721422830e5ddee2eb356d6c4cb929dd7e1
hpt34x: fix CONFIG_HPT34X_AUTODMA=n handling

Programming DMA mode may destroy current PIO mode setting so if
CONFIG_HPT34X_AUTODMA=n (the default case) make ide_tune_dma() fail
early by disabling all host DMA masks and re-tune PIO mode.

This fix doesn't help with the driver being broken but is needed
for some other changes.

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