android_kernel_xiaomi_sm8350/drivers/ide
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
..
arm Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cris Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
h8300 Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
legacy [PATCH] irq-flags: ide: Use the new IRQF_ constants 2006-07-02 13:58:49 -07:00
mips [PATCH] handle errors returned by platform_get_irq*() 2006-03-20 13:42:57 -08:00
pci [PATCH] ide: fix Jmicron support 2006-07-12 12:59:35 -07:00
ppc Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-cd.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-cd.h
ide-disk.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-dma.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-floppy.c [PATCH] lockdep: annotate enable_in_hardirq() 2006-07-03 15:27:09 -07:00
ide-generic.c
ide-io.c [PATCH] lockdep: annotate on-stack completions 2006-07-03 15:27:09 -07:00
ide-iops.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-lib.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-pnp.c
ide-probe.c [PATCH] irq-flags: ide: Use the new IRQF_ constants 2006-07-02 13:58:49 -07:00
ide-proc.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-tape.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ide-taskfile.c [PATCH] lockdep: annotate enable_in_hardirq() 2006-07-03 15:27:09 -07:00
ide-timing.h [PATCH] ide: actually honor drive's minimum PIO/DMA cycle times 2006-06-26 09:58:27 -07:00
ide.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
Kconfig [POWERPC] Convert powermac ide blink to new led infrastructure 2006-06-28 11:51:12 +10:00
Makefile
setup-pci.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00