Skip to contentSkip to conversation

ATA: Make CS5536 PATA driver use 32-bit BM DMA template instead of 16-bit.

PATCH Applied Krzysztof Halasa 5 participants 5 messages Nov 10, 2009 – Nov 17, 2009 libata

lore
Share & tools
lore
#0 lore raw

Tested on IXP425 + CS5536.

drivers/ata/pata_cs5536.c +1 -1
index 88a7933..0898213 100644
@@ -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
#1 lore raw
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
drivers/ata/pata_cs5536.c +1 -1
index 88a7933..0898213 100644
@@ -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
Applied
#2 lore raw
In reply to Krzysztof Halasa
Quoted 9 lines · Krzysztof Halasa

Tested on IXP425 + CS5536.

drivers/ata/pata_cs5536.c +0 -0
index 88a7933..0898213 100644

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

#3 lore raw
Quoted 7 lines · Jeff Garzik
Quoted 7 lines
drivers/ata/pata_cs5536.c +0 -0
index 88a7933..0898213 100644
@@ -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 -1
  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

Why not rename ata_bmdma_port_ops as ata_bmdma_port_ops16 for consistency?

#4 lore raw
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
index 88a7933..0898213 100644
@@ -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 -1
  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 2 lines

Why not rename ata_bmdma_port_ops as ata_bmdma_port_ops16 for consistency?

Because 16bit is the normal default for ATA BMDMA, and because its a ton of unneccessary churn ?