Thread (2 messages) 2 messages, 2 authors, 2004-10-27

[PATCH] Fix pata_pdc2027x incorrect pio_mask and mwdma_mask

STALE8010d

From: Albert Lee <hidden>
Date: 2004-10-27 10:32:55

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<redacted>
************************************************************
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,
  },
 };

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help