diff options
author | Robert Hancock <hancockr@shaw.ca> | 2007-11-25 16:59:36 -0600 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-04 14:01:18 -0500 |
commit | 3f3debdbfb7713aa06c4370bab6bef277dfd7a37 (patch) | |
tree | 0f69f5b993db5e7ec188383f082079396975cd18 /lib/proportions.c | |
parent | 2254c2e0184c603f92fc9b81016ff4bb53da622d (diff) | |
download | linux-3f3debdbfb7713aa06c4370bab6bef277dfd7a37.tar.gz linux-3f3debdbfb7713aa06c4370bab6bef277dfd7a37.tar.bz2 linux-3f3debdbfb7713aa06c4370bab6bef277dfd7a37.zip |
sata_nv: don't use legacy DMA in ADMA mode (v3)
We need to run any DMA command with result taskfile requested in ADMA mode
when the port is in ADMA mode, otherwise it may try to use the legacy DMA engine
in ADMA mode which is not allowed. Enforce this with BUG_ON() since data
corruption could potentially result if this happened. Also, fail any attempt to
try and issue NCQ commands with result taskfile requested, since the hardware
doesn't allow this.
Signed-off-by: Robert Hancock <hancockr@shaw.ca>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'lib/proportions.c')
0 files changed, 0 insertions, 0 deletions