linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libata-eh: call freeze hook before port abort
@ 2009-04-07 21:38 Jeff Garzik
  2009-04-07 22:58 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Garzik @ 2009-04-07 21:38 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Linux IDE mailing list

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]


Tejun,

This patch looks like it might work for !PMP setups, but I am not so 
sure about PMP.

Any comments?  This should help begin addressing the problem where 
hardware needs the DMA engine turned off before accessing the taskfile 
registers -- something needed for ata_port_abort() via ata_qc_complete().

	Jeff





[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 377 bytes --]

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 0183131..0b7ed40 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -1013,8 +1013,8 @@ int ata_port_freeze(struct ata_port *ap)
 
 	WARN_ON(!ap->ops->error_handler);
 
-	nr_aborted = ata_port_abort(ap);
 	__ata_port_freeze(ap);
+	nr_aborted = ata_port_abort(ap);
 
 	return nr_aborted;
 }

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

end of thread, other threads:[~2009-04-07 22:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 21:38 [PATCH] libata-eh: call freeze hook before port abort Jeff Garzik
2009-04-07 22:58 ` 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).