* [PATCH] Fix pata_pdc2027x incorrect pio_mask and mwdma_mask
@ 2004-10-27 10:32 Albert Lee
2004-10-27 14:49 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Albert Lee @ 2004-10-27 10:32 UTC (permalink / raw)
To: Jeff Garzik; +Cc: IDE Linux
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
Jeff:
Fix pata_pdc2027x incorrect pio_mask and mwdma_mask for your review.
(patch is against the libata-dev-2.6 tree.)
Albert
Signed-off-by: Albert Lee<albertcc@tw.ibm.com>
************************************************************
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,
},
};
[-- Attachment #2: patch-mode-mask --]
[-- Type: application/octet-stream, Size: 1125 bytes --]
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,
},
};
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-27 14:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 10:32 [PATCH] Fix pata_pdc2027x incorrect pio_mask and mwdma_mask Albert Lee
2004-10-27 14:49 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).