Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=61dd08c6c8d2b4ede530e43c01fa72f789ef65b1
Commit:     61dd08c6c8d2b4ede530e43c01fa72f789ef65b1
Parent:     b2a8bbe67d73631c71492fd60b757fc50a87f182
Author:     Alan <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 25 15:09:05 2007 +0000
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Thu Jan 25 18:27:16 2007 -0500

    libata-sff: Don't call bmdma_stop on non DMA capable controllers
    
    Fixes bogus accesses to ports 0-15 with a non DMA capable controller.
    This I think should go in for 2.6.20
    
    Signed-off-by: Alan Cox <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/ata/libata-sff.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index 114fa81..942aeba 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -827,7 +827,8 @@ void ata_bmdma_error_handler(struct ata_port *ap)
  */
 void ata_bmdma_post_internal_cmd(struct ata_queued_cmd *qc)
 {
-       ata_bmdma_stop(qc);
+       if (qc->ap->ioaddr.bmdma_addr)
+               ata_bmdma_stop(qc);
 }
 
 #ifdef CONFIG_PCI
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to