From: Tejun Heo Date: Tue, 22 Jun 2010 10:27:26 +0000 (+0200) Subject: ata_generic: implement ATA_GEN_* flags and force enable DMA on MBP 7,1 X-Git-Tag: v2.6.35-rc4~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1529c69adce1e95f7ae72f0441590c226bbac7fc;p=pandora-kernel.git ata_generic: implement ATA_GEN_* flags and force enable DMA on MBP 7,1 IDE mode of MCP89 on MBP 7,1 doesn't set DMA enable bits in the BMDMA status register. Make the following changes to work around the problem. * Instead of using hard coded 1 in id->driver_data as class code match, use ATA_GEN_CLASS_MATCH and carry the matched id in host->private_data. * Instead of matching PCI_VENDOR_ID_CENATEK, use ATA_GEN_FORCE_DMA flag in id instead. * Add ATA_GEN_FORCE_DMA to the id entry of MBP 7,1. Signed-off-by: Tejun Heo Cc: Peer Chen Cc: stable@kernel.org Reported-by: Anders Ă˜sthus Reported-by: Andreas Graf Reported-by: Benoit Gschwind Reported-by: Damien Cassou Reported-by: tixetsal@juno.com Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed