android_kernel_xiaomi_sm8350/drivers/pci
Alan Cox 15e0c69436 [PATCH] ide: fix Jmicron support
Prior to 2.6.18rc1 you could install with devices on a JMicron chipset
using the "all-generic-ide" option. As of this kernel the AHCI driver
grabs the controller and rams it into AHCI mode losing the PATA ports
and making CD drives and the like vanish. The all-generic-ide option
fails because the AHCI driver grabbed the PCI device and reconfigured
it.

To fix this three things are needed.

#1 We must put the chip into dual function mode
#2 The AHCI driver must grab only function 0 (already in your rc1 tree)
#3 Something must grab the PATA ports

The attached patch is the minimal risk edition of this. It puts the chip
into dual function mode so that AHCI will grab the SATA ports without
losing the PATA ports. To keep the risk as low as possible the third
patch adds the PCI identifiers for the PATA port and the FN check to the
ide-generic driver. There is a more featured jmicron driver on its way
but that adds risk and the ide-generic support is sufficient to install
and run a system.

The actual chip setup done by the quirk is the precise setup recommended
by the vendor.

(The JMB368 appears only in the ide-generic entry as it has no AHCI so
does not need the quirk)

Signed-off-by: Alan Cox <alan@redhat.com>
Acked-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-12 12:59:35 -07:00
..
hotplug Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2006-07-10 15:14:38 -07:00
pcie
.gitignore
access.c
bus.c [PATCH] 64bit resource: change pci core and arch code to use resource_size_t 2006-06-27 09:24:00 -07:00
hotplug.c
Kconfig
Makefile [PATCH] PCI: msi abstractions and support for altix 2006-06-21 11:59:58 -07:00
msi-altix.c [PATCH] PCI: altix: msi support 2006-06-21 11:59:59 -07:00
msi-apic.c [PATCH] x86_64: msi_apic.c build fix 2006-06-26 10:48:22 -07:00
msi.c [PATCH] msi: Only keep one msi_desc in each slab entry. 2006-07-12 12:52:55 -07:00
msi.h [PATCH] PCI: msi abstractions and support for altix 2006-06-21 11:59:58 -07:00
pci-acpi.c [PATCH] PCI ACPI: Rename the functions to avoid multiple instances. 2006-06-21 11:59:59 -07:00
pci-driver.c
pci-sysfs.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pci.c [PATCH] 64bit resource: fix up printks for resources in pci core and hotplug drivers 2006-06-27 09:23:58 -07:00
pci.h [PATCH] 64bit resource: change pci core and arch code to use resource_size_t 2006-06-27 09:24:00 -07:00
probe.c [PATCH] pci: initialize struct pci_dev.error_state 2006-07-10 13:24:21 -07:00
proc.c [PATCH] 64bit resource: change pci core and arch code to use resource_size_t 2006-06-27 09:24:00 -07:00
quirks.c [PATCH] ide: fix Jmicron support 2006-07-12 12:59:35 -07:00
remove.c [PATCH] PCI: fix race with pci_walk_bus and pci_destroy_dev 2006-06-21 12:00:01 -07:00
rom.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
search.c [PATCH] PCI: fix race with pci_walk_bus and pci_destroy_dev 2006-06-21 12:00:01 -07:00
setup-bus.c [PATCH] 64bit resource: fix up printks for resources in pci core and hotplug drivers 2006-06-27 09:23:58 -07:00
setup-irq.c
setup-res.c [PATCH] 64bit resource: change pci core and arch code to use resource_size_t 2006-06-27 09:24:00 -07:00
syscall.c