Skip to contentSkip to conversation

libata: add back ->data_xfer to ata_piix.c

PATCH Applied Albert Lee 2 participants 2 messages May 26, 2006 – May 27, 2006

Subsystems (2)
lore
Share & tools
lore

Albert Lee

author
#0 lore raw

PATCH 1/1 libata: add back ->data_xfer to ata_piix.c

Add back ->data_xfer and ->mode_filter to ata_piix.c.

---
The ->data_xfer and ->mode_filter hooks of ata_piix.c are left out when Alan's patches are merged. Add them back.

Patch against upstream branch of libata-dev
(957d2df1801865eb1e63864bc63b970aa9c460ba).

drivers/scsi/ata_piix.c +3 -0
@@ -228,6 +228,7 @@ static const struct ata_port_operations 
 	.port_disable		= ata_port_disable,
 	.set_piomode		= piix_set_piomode,
 	.set_dmamode		= piix_set_dmamode,
+	.mode_filter		= ata_pci_default_filter,
 
 	.tf_load		= ata_tf_load,
 	.tf_read		= ata_tf_read,
@@ -243,6 +244,7 @@ static const struct ata_port_operations 
 	.bmdma_status		= ata_bmdma_status,
 	.qc_prep		= ata_qc_prep,
 	.qc_issue		= ata_qc_issue_prot,
+	.data_xfer		= ata_pio_data_xfer,
 
 	.freeze			= ata_bmdma_freeze,
 	.thaw			= ata_bmdma_thaw,
@@ -274,6 +276,7 @@ static const struct ata_port_operations 
 	.bmdma_status		= ata_bmdma_status,
 	.qc_prep		= ata_qc_prep,
 	.qc_issue		= ata_qc_issue_prot,
+	.data_xfer		= ata_pio_data_xfer,
 
 	.freeze			= ata_bmdma_freeze,
 	.thaw			= ata_bmdma_thaw,
Applied
#1 lore raw
Quoted 6 lines · Albert Lee

Add back ->data_xfer and ->mode_filter to ata_piix.c.

---
The ->data_xfer and ->mode_filter hooks of ata_piix.c are left out when Alan's patches are merged. Add them back.

applied