projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[libata] ahci: add ATI SB800 PCI IDs
[cascardo/linux.git]
/
drivers
/
ata
/
pata_it821x.c
diff --git
a/drivers/ata/pata_it821x.c
b/drivers/ata/pata_it821x.c
index
430673b
..
5d8b91e
100644
(file)
--- a/
drivers/ata/pata_it821x.c
+++ b/
drivers/ata/pata_it821x.c
@@
-80,7
+80,7
@@
#define DRV_NAME "pata_it821x"
#define DRV_NAME "pata_it821x"
-#define DRV_VERSION "0.3.
7
"
+#define DRV_VERSION "0.3.
8
"
struct it821x_dev
{
struct it821x_dev
{
@@
-533,6
+533,10
@@
static int it821x_check_atapi_dma(struct ata_queued_cmd *qc)
struct ata_port *ap = qc->ap;
struct it821x_dev *itdev = ap->private_data;
struct ata_port *ap = qc->ap;
struct it821x_dev *itdev = ap->private_data;
+ /* Only use dma for transfers to/from the media. */
+ if (qc->nbytes < 2048)
+ return -EOPNOTSUPP;
+
/* No ATAPI DMA in smart mode */
if (itdev->smart)
return -EOPNOTSUPP;
/* No ATAPI DMA in smart mode */
if (itdev->smart)
return -EOPNOTSUPP;
@@
-587,7
+591,7
@@
static int it821x_port_start(struct ata_port *ap)
itdev->want[1][1] = ATA_ANY;
itdev->last_device = -1;
itdev->want[1][1] = ATA_ANY;
itdev->last_device = -1;
- if (pdev->revision == 0x1
1
) {
+ if (pdev->revision == 0x1
0
) {
itdev->timing10 = 1;
/* Need to disable ATAPI DMA for this case */
if (!itdev->smart)
itdev->timing10 = 1;
/* Need to disable ATAPI DMA for this case */
if (!itdev->smart)