ATA: Make CS5536 PATA driver use 32-bit BM DMA template instead of 16-bit.
Tested on IXP425 + CS5536.
Signed-off-by Krzysztof Hałasa <[email protected]>
drivers/ata/pata_cs5536.c +1 -1
@@ -232,7 +232,7 @@ static struct scsi_host_template cs5536_sht = { };static struct ata_port_operations cs5536_port_ops = { - .inherits = &ata_bmdma_port_ops, + .inherits = &ata_bmdma32_port_ops, .cable_detect = cs5536_cable_detect, .set_piomode = cs5536_set_piomode, .set_dmamode = cs5536_set_dmamode,
Signature · 1 line
Krzysztof Halasa
Quoted 1 line · Krzysztof Halasa
Tested on IXP425 + CS5536.
Well I guess we will find out if it works on the Geode LX + CS5536 and loongson + CS5536 sometime. I don't know why it wouldn't work.
Quoted 15 lines
Signed-off-by Krzysztof Hałasa <[email protected]>drivers/ata/pata_cs5536.c +1
-1@@ -232,7 +232,7 @@ static struct scsi_host_template cs5536_sht = { };static struct ata_port_operations cs5536_port_ops = { - .inherits = &ata_bmdma_port_ops, + .inherits = &ata_bmdma32_port_ops, .cable_detect = cs5536_cable_detect, .set_piomode = cs5536_set_piomode, .set_dmamode = cs5536_set_dmamode,
Signature · 1 line
Len Sorensen
Jeff Garzik
AppliedQuoted 9 lines · Krzysztof Halasa
Tested on IXP425 + CS5536.
Signed-off-by Krzysztof Hałasa<[email protected]>drivers/ata/pata_cs5536.c +0
-0
drivers/ata/pata_cs5536.c static struct scsi_host_template cs5536_sht = { · line 238
Quoted 8 lines
drivers/ata/pata_cs5536.c +1
-1@@ -232,7 +232,7 @@ static struct scsi_host_template cs5536_sht = { };static struct ata_port_operations cs5536_port_ops = { - .inherits =&ata_bmdma_port_ops, + .inherits =&ata_bmdma32_port_ops, .cable_detect = cs5536_cable_detect, .set_piomode = cs5536_set_piomode, .set_dmamode = cs5536_set_dmamode,
applied
Quoted 7 lines · Jeff Garzik
Quoted 7 lines
drivers/ata/pata_cs5536.c +0
-0@@ -232,7 +232,7 @@ static struct scsi_host_template cs5536_sht = { };
Quoted 8 lines
drivers/ata/pata_cs5536.c static struct scsi_host_template cs5536_sht = { · line 238
Quoted 6 lines
drivers/ata/pata_cs5536.c +1
-1static struct ata_port_operations cs5536_port_ops = { - .inherits =&ata_bmdma_port_ops, + .inherits =&ata_bmdma32_port_ops, .cable_detect = cs5536_cable_detect, .set_piomode = cs5536_set_piomode, .set_dmamode = cs5536_set_dmamode,applied
Why not rename ata_bmdma_port_ops as ata_bmdma_port_ops16 for consistency?
Quoted 18 lines · On Tue, 17 Nov 2009 12:35:50 +0100 Thierry Vignaud <[email protected]>…
Quoted 7 lines · Jeff Garzik
Quoted 7 lines
drivers/ata/pata_cs5536.c +0
-0@@ -232,7 +232,7 @@ static struct scsi_host_template cs5536_sht = { };Quoted 8 lines
drivers/ata/pata_cs5536.c static struct scsi_host_template cs5536_sht = { · line 238
Quoted 6 lines
drivers/ata/pata_cs5536.c +1
-1static struct ata_port_operations cs5536_port_ops = { - .inherits =&ata_bmdma_port_ops, + .inherits =&ata_bmdma32_port_ops, .cable_detect = cs5536_cable_detect, .set_piomode = cs5536_set_piomode, .set_dmamode = cs5536_set_dmamode,applied
Quoted 2 lines
Why not rename
ata_bmdma_port_opsasata_bmdma_port_ops16for consistency?
Because 16bit is the normal default for ATA BMDMA, and because its a ton of unneccessary churn ?