linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ahci: rename ahci_vt8251_hardreset() to ahci_broken_hardreset()
@ 2007-10-25  3:02 Tejun Heo
  2007-10-25  3:28 ` [PATCH 2/2] ahci: implement workaround for ASUS P5W-DH Deluxe ahci_broken_hardreset() Tejun Heo
  0 siblings, 1 reply; 3+ messages in thread
From: Tejun Heo @ 2007-10-25  3:02 UTC (permalink / raw)
  To: Jeff Garzik, linux-ide

Rename ahci_vt8251_hardreset() to ahci_broken_hardreset() and rename
related names accordingly.  This is preparation for ASUS P5W-DH Deluxe
workaround.

Signed-off-by: Tejun Heo <htejun@gmail.com>
---
 drivers/ata/ahci.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Index: work/drivers/ata/ahci.c
===================================================================
--- work.orig/drivers/ata/ahci.c
+++ work/drivers/ata/ahci.c
@@ -240,7 +240,7 @@ static void ahci_thaw(struct ata_port *a
 static void ahci_pmp_attach(struct ata_port *ap);
 static void ahci_pmp_detach(struct ata_port *ap);
 static void ahci_error_handler(struct ata_port *ap);
-static void ahci_vt8251_error_handler(struct ata_port *ap);
+static void ahci_broken_hrst_error_handler(struct ata_port *ap);
 static void ahci_post_internal_cmd(struct ata_queued_cmd *qc);
 static int ahci_port_resume(struct ata_port *ap);
 static unsigned int ahci_fill_sg(struct ata_queued_cmd *qc, void *cmd_tbl);
@@ -305,7 +305,7 @@ static const struct ata_port_operations 
 	.port_stop		= ahci_port_stop,
 };
 
-static const struct ata_port_operations ahci_vt8251_ops = {
+static const struct ata_port_operations ahci_broken_hrst_ops = {
 	.check_status		= ahci_check_status,
 	.check_altstatus	= ahci_check_status,
 	.dev_select		= ata_noop_dev_select,
@@ -324,7 +324,7 @@ static const struct ata_port_operations 
 	.freeze			= ahci_freeze,
 	.thaw			= ahci_thaw,
 
-	.error_handler		= ahci_vt8251_error_handler,
+	.error_handler		= ahci_broken_hrst_error_handler,
 	.post_internal_cmd	= ahci_post_internal_cmd,
 
 	.pmp_attach		= ahci_pmp_attach,
@@ -357,7 +357,7 @@ static const struct ata_port_info ahci_p
 		.link_flags	= AHCI_LFLAG_COMMON | ATA_LFLAG_HRST_TO_RESUME,
 		.pio_mask	= 0x1f, /* pio0-4 */
 		.udma_mask	= ATA_UDMA6,
-		.port_ops	= &ahci_vt8251_ops,
+		.port_ops	= &ahci_broken_hrst_ops,
 	},
 	/* board_ahci_ign_iferr */
 	{
@@ -1185,7 +1185,7 @@ static int ahci_hardreset(struct ata_lin
 	return rc;
 }
 
-static int ahci_vt8251_hardreset(struct ata_link *link, unsigned int *class,
+static int ahci_broken_hardreset(struct ata_link *link, unsigned int *class,
 				 unsigned long deadline)
 {
 	struct ata_port *ap = link->ap;
@@ -1657,7 +1657,7 @@ static void ahci_error_handler(struct at
 		       sata_pmp_std_hardreset, sata_pmp_std_postreset);
 }
 
-static void ahci_vt8251_error_handler(struct ata_port *ap)
+static void ahci_broken_hrst_error_handler(struct ata_port *ap)
 {
 	if (!(ap->pflags & ATA_PFLAG_FROZEN)) {
 		/* restart engine */
@@ -1666,7 +1666,7 @@ static void ahci_vt8251_error_handler(st
 	}
 
 	/* perform recovery */
-	ata_do_eh(ap, ata_std_prereset, ahci_softreset, ahci_vt8251_hardreset,
+	ata_do_eh(ap, ata_std_prereset, ahci_softreset, ahci_broken_hardreset,
 		  ahci_postreset);
 }
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-25  4:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-25  3:02 [PATCH 1/2] ahci: rename ahci_vt8251_hardreset() to ahci_broken_hardreset() Tejun Heo
2007-10-25  3:28 ` [PATCH 2/2] ahci: implement workaround for ASUS P5W-DH Deluxe ahci_broken_hardreset() Tejun Heo
2007-10-25  4:52   ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).