projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aacda37
)
pata_it821x: use raw nbytes in check_atapi_dma
author
Tejun Heo
<htejun@gmail.com>
Tue, 18 Mar 2008 08:56:12 +0000
(17:56 +0900)
committer
Jeff Garzik
<jeff@garzik.org>
Tue, 25 Mar 2008 02:09:24 +0000
(22:09 -0400)
pata_it821x needs to look at raw request size in check_atapi_dma().
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_it821x.c
patch
|
blob
|
history
diff --git
a/drivers/ata/pata_it821x.c
b/drivers/ata/pata_it821x.c
index
109ddd4
..
257951d
100644
(file)
--- a/
drivers/ata/pata_it821x.c
+++ b/
drivers/ata/pata_it821x.c
@@
-564,7
+564,7
@@
static int it821x_check_atapi_dma(struct ata_queued_cmd *qc)
struct it821x_dev *itdev = ap->private_data;
/* Only use dma for transfers to/from the media. */
- if (
qc->nbytes
< 2048)
+ if (
ata_qc_raw_nbytes(qc)
< 2048)
return -EOPNOTSUPP;
/* No ATAPI DMA in smart mode */