]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pata_mpc52xx: inherit from ata_bmdma_port_ops
authorTejun Heo <tj@kernel.org>
Sun, 9 Jan 2011 22:48:20 +0000 (17:48 -0500)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:57:53 +0000 (11:57 -0700)
commit 77c5fd19075d299fe820bb59bb21b0b113676e20 upstream.

pata_mpc52xx supports BMDMA but inherits ata_sff_port_ops which
triggers BUG_ON() when a DMA command is issued.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reported-by: Roman Fietze <roman.fietze@telemotive.de>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ata/pata_mpc52xx.c

index f087ab55b1dfcb09c0c0dce87a045a8de7479f31..8f56ef69f4dba76c3d432b4c7c4ea98f72f6cd4f 100644 (file)
@@ -610,7 +610,7 @@ static struct scsi_host_template mpc52xx_ata_sht = {
 };
 
 static struct ata_port_operations mpc52xx_ata_port_ops = {
-       .inherits               = &ata_sff_port_ops,
+       .inherits               = &ata_bmdma_port_ops,
        .sff_dev_select         = mpc52xx_ata_dev_select,
        .set_piomode            = mpc52xx_ata_set_piomode,
        .set_dmamode            = mpc52xx_ata_set_dmamode,