]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ide_dma_speed() fixes
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Tue, 3 Oct 2006 08:14:17 +0000 (01:14 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:07 +0000 (08:04 -0700)
commit9cb2189c0dd029e671b47d7098d12b83f2b0646b
tree28df59ad1701c407ecdd3b08295093dffc678eb2
parent37f773fb42c9d03030bbd00cabb6a2580f609b39
[PATCH] ide_dma_speed() fixes

ide_dma_speed() fails to actually honor the IDE drivers' mode support
masks) because of the bogus checks -- thus, selecting the DMA transfer mode
that the driver explicitly refuses to support is possible.  Additionally,
there is no check for validity of the UltraDMA mode data in the drive ID,
and the function is misdocumented.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/ide-lib.c