ahci/pata_jmicron: fix JMicron quirk
authorTejun Heo <htejun@gmail.com>
Fri, 2 Feb 2007 05:51:09 +0000 (14:51 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 2 Feb 2007 16:52:05 +0000 (11:52 -0500)
For all JMicrons except for 361 and 368, AHCI mode enable bits in the
Control(1) should be set.  This used to be done in both ahci and
pata_jmicron but while moving programming to PCI quirk, it was removed
from ahci part while still left in pata_jmicron.

The implemented JMicron PCI quirk was incorrect in that it didn't
program AHCI mode enable bits.  If pata_jmicron is loaded first and
programs those bits, the ahci ports work; otherwise, ahci device
detection fails miserably.

This patch makes JMicron PCI quirk clear SATA IDE mode bits and set
AHCI mode bits and remove the respective part from pata_jmicron.
Tested on JMB361, 363 and 368.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

No differences found