Skip to contentSkip to conversation

Fix pata_pdc2027x incorrect pio_mask and mwdma_mask

PATCH In review Albert Lee 2 participants 2 messages Oct 27, 2004 libata

lore
Share & tools
lore

Albert Lee

author
#0 lore raw

PATCH 1/1 Fix pata_pdc2027x incorrect pio_mask and mwdma_mask

Jeff:

Fix pata_pdc2027x incorrect pio_mask and mwdma_mask for your review.
(patch is against the libata-dev-2.6 tree.)

Albert

************************************************************
diff -Nru libata-dev-2.6/drivers/scsi/pata_pdc2027x.c libata-dev-2.6-mod/drivers/scsi/pata_pdc2027x.c
--- libata-dev-2.6/drivers/scsi/pata_pdc2027x.c 2004-10-27 16:10:54.000000000 +0800
+++ libata-dev-2.6-mod/drivers/scsi/pata_pdc2027x.c 2004-10-27 17:55:38.000000000 +0800
@@ -162,9 +162,9 @@
.sht = &pdc2027x_sht,
.host_flags = ATA_FLAG_NO_LEGACY | ATA_FLAG_SLAVE_POSS |
ATA_FLAG_SRST,

-  .pio_mask = 0x03, /* pio3-4 */
-  .mwdma_mask = 0x06, /* mwdma1-2 */
-  .udma_mask = ATA_UDMA5,
+  .pio_mask = 0x1f, /* pio0-4 */
+  .mwdma_mask = 0x07, /* mwdma0-2 */
+  .udma_mask = ATA_UDMA5, /* udma0-5 */

.port_ops = &pdc2027x_pata_ops,
},
/* PDC_UDMA_133 */
@@ -172,9 +172,9 @@
.sht = &pdc2027x_sht,
.host_flags = ATA_FLAG_NO_LEGACY | ATA_FLAG_SLAVE_POSS |
ATA_FLAG_SRST,

-  .pio_mask = 0x03, /* pio3-4 */
-  .mwdma_mask = 0x06, /* mwdma1-2 */
-  .udma_mask = ATA_UDMA6,
+  .pio_mask = 0x1f, /* pio0-4 */
+  .mwdma_mask = 0x07, /* mwdma0-2 */
+  .udma_mask = ATA_UDMA6, /* udma0-6 */

.port_ops = &pdc2027x_pata_ops,
},
};

#1 lore raw
Quoted 4 lines · Albert Lee

Jeff:

Fix pata_pdc2027x incorrect pio_mask and mwdma_mask for your review.
(patch is against the libata-dev-2.6 tree.)

patch applied.

Quoted 1 line

In addition to the last email (just sent), I have one further request:
please add a space between "Albert Lee" and "<[email protected]>"

Thanks,

Jeff