Skip to content

Commit

Permalink
it821x: fix incorrect SWDMA mask
Browse files Browse the repository at this point in the history
SWDMA modes are unsupported by it821x.  Attempts to tune SWDMA modes always
fail (due to sanity check in ->speedproc) and result in PIO being tuned.

* Fix incorrect SWDMA mask so core code won't try these modes and will just
  tune PIO if no other DMA modes are available.

* Bump driver version.

Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Acked-by: Sergei Shtylyov <[email protected]>
  • Loading branch information
bzolnier committed Jul 3, 2007
1 parent 603a0e2 commit 52374f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ide/pci/it821x.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/*
* linux/drivers/ide/pci/it821x.c Version 0.15 Jun 2 2007
* linux/drivers/ide/pci/it821x.c Version 0.16 Jul 3 2007
*
* Copyright (C) 2004 Red Hat <[email protected]>
* Copyright (C) 2007 Bartlomiej Zolnierkiewicz
Expand Down Expand Up @@ -660,7 +660,6 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif)

hwif->ultra_mask = 0x7f;
hwif->mwdma_mask = 0x07;
hwif->swdma_mask = 0x07;

hwif->ide_dma_check = &it821x_config_drive_for_dma;
if (!(hwif->udma_four))
Expand Down

0 comments on commit 52374f8

Please sign in to comment.