]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf18437078bfa8196c53e104477813f2139f82f56
tree58d3792bd06a7583c91564737599b0392c16d798
parenta36cfba918c1b274eb20633fc3b004f962a7c9d2
ahci/pata_jmicron: fix JMicron quirk

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>
drivers/ata/pata_jmicron.c
drivers/pci/quirks.c