Skip to content
Commit 1529c69a authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Cc: Peer Chen <pchen@nvidia.com>
Cc: stable@kernel.org
Reported-by: default avatarAnders Østhus <grapz666@gmail.com>
Reported-by: default avatarAndreas Graf <andreas_graf@csgraf.de>
Reported-by: default avatarBenoit Gschwind <gschwind@gnu-log.net>
Reported-by: default avatarDamien Cassou <damien.cassou@gmail.com>
Reported-by: default avatar <tixetsal@juno.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent c6353b45
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment