Skip to contentSkip to conversation

libata build fix

PATCH In review Jeff Garzik 3 participants 4 messages Oct 15, 2007 – Oct 20, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libata build fix

And it becomes obvious I normally do my building and testing on x86-64...

Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.git upstream-linus

to receive the following updates:

 drivers/ata/pata_cs5536.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Jeff Garzik (1):
[libata] pata_cs5536: new API build fix

drivers/ata/pata_cs5536.c +0 -2
index 21405bf..53070f6 100644
@@ -239,7 +239,6 @@ static struct scsi_host_template cs5536_sht = {
 };
 
 static struct ata_port_operations cs5536_port_ops = {
-	.port_disable		= ata_port_disable,
 	.set_piomode		= cs5536_set_piomode,
 	.set_dmamode		= cs5536_set_dmamode,
 	.mode_filter		= ata_pci_default_filter,
@@ -269,7 +268,6 @@ static struct ata_port_operations cs5536_port_ops = {
 	.irq_handler		= ata_interrupt,
 	.irq_clear		= ata_bmdma_irq_clear,
 	.irq_on			= ata_irq_on,
-	.irq_ack		= ata_irq_ack,
 
 	.port_start		= ata_port_start,
 };
#1 lore raw
Quoted 2 lines · Jeff Garzik

Jeff Garzik (1):
[libata] pata_cs5536: new API build fix

We probably need also this one for pata_cs5536:

[PATCH] pata_cs5536: MWDMA fix

* Fix out-of-bound array access for MWDMA modes.

* Bump driver version.

Cc "Martin K. Petersen" <[email protected]>
Cc Jeff Garzik <[email protected]>
---
 drivers/ata/pata_cs5536.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/pata_cs5536.c +2 -2
Index: b/drivers/ata/pata_cs5536.c
===================================================================
@@ -40,7 +40,7 @@
 #include <asm/msr.h>
 
 #define DRV_NAME	"pata_cs5536"
-#define DRV_VERSION	"0.0.5"
+#define DRV_VERSION	"0.0.6"
 
 enum {
 	CFG			= 0,
@@ -214,7 +214,7 @@ static void cs5536_set_dmamode(struct at
 		cs5536_read(pdev, DTC, &dtc);
 
 		dtc &= ~(IDE_DRV_MASK << dshift);
-		dtc |= mwdma_timings[mode] << dshift;
+		dtc |= mwdma_timings[mode - XFER_MW_DMA_0] << dshift;
 
 		cs5536_write(pdev, DTC, dtc);
 	}
#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"BZ" == Bartlomiej Zolnierkiewicz <[email protected]> writes:

BZ> We probably need also this one for pata_cs5536:

BZ> [PATCH] pata_cs5536: MWDMA fix

BZ> * Fix out-of-bound array access for MWDMA modes.

BZ> * Bump driver version.

Obviously correct.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering
author Applied
#3 lore raw
In reply to Bartlomiej Zolnierkiewicz
Quoted 11 lines · Bartlomiej Zolnierkiewicz
Quoted 2 lines · Jeff Garzik

Jeff Garzik (1):
[libata] pata_cs5536: new API build fix

We probably need also this one for pata_cs5536:

[PATCH] pata_cs5536: MWDMA fix

* Fix out-of-bound array access for MWDMA modes.

Quoted 9 lines

* Bump driver version.

Cc "Martin K. Petersen" <[email protected]>
Cc Jeff Garzik <[email protected]>
---
 drivers/ata/pata_cs5536.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

applied