android_kernel_samsung_msm8976/drivers/ide/pci
Bartlomiej Zolnierkiewicz 39baf8a798 atiixp/jmicron/triflex: fix PIO fallback
* atiixp: if DMA can't be used atiixp_config_drive_for_dma() should return 0,
  atiixp_dma_check() will tune the correct PIO mode anyway

* jmicron: if DMA can't be used config_chipset_for_dma() should return 0,
  micron_config_drive_for_dma() will tune the correct PIO mode anyway

  config_jmicron_chipset_for_pio(drive, !speed) doesn't program
  device transfer mode for speed != 0 (only wastes some CPU cycles
  on ide_get_best_pio_mode() call) so remove it

* triflex: if DMA can't be used triflex_config_drive_for_dma() should return 0,
  triflex_config_drive_xfer_rate() will tune correct PIO mode anyway

Above changes also fix (theoretical) issue when ->speedproc fails to set
device transfer mode (i.e. when ide_config_drive_speed() fails to program it)
but one of DMA transfer modes is already enabled on the device by the BIOS.
In such scenario ide_dma_enable() will incorrectly return true statement
and ->ide_dma_check will try to enable DMA on the device.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2007-02-17 02:40:20 +01:00
..
aec62xx.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
alim15x3.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
amd74xx.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
atiixp.c atiixp/jmicron/triflex: fix PIO fallback 2007-02-17 02:40:20 +01:00
cmd64x.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cmd640.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cs5520.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cs5530.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cs5535.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cy82c693.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
delkin_cb.c IDE Driver for Delkin/Lexar/etc.. cardbus CF adapter 2007-02-07 18:19:32 +01:00
generic.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
hpt34x.c hpt34x: hpt34x_tune_chipset() (->speedproc) fix 2007-02-17 02:40:20 +01:00
hpt366.c hpt366: HPT36x PCI clock detection fix 2007-02-07 18:18:20 +01:00
it821x.c [PATCH] it821x: fix ide dma setup bug 2006-07-28 09:02:17 +02:00
it8213.c ide: it8213 IDE driver update (version 2) 2007-02-07 18:19:26 +01:00
jmicron.c atiixp/jmicron/triflex: fix PIO fallback 2007-02-17 02:40:20 +01:00
Makefile IDE Driver for Delkin/Lexar/etc.. cardbus CF adapter 2007-02-07 18:19:32 +01:00
ns87415.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
opti621.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
pdc202xx_new.c pdc202xx_new: remove check_in_drive_lists abomination 2007-02-07 18:18:39 +01:00
pdc202xx_old.c pdc202xx_new: remove check_in_drive_lists abomination 2007-02-07 18:18:39 +01:00
piix.c piix: tuneproc() fixes/cleanups 2007-02-07 18:18:28 +01:00
rz1000.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sc1200.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
serverworks.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sgiioc4.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
siimage.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sis5513.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sl82c105.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
slc90e66.c slc90e66: carry over fixes from piix driver 2007-02-07 18:18:34 +01:00
tc86c001.c tc86c001: add missing __init tag for tc86c001_ide_init() 2007-02-07 18:19:09 +01:00
triflex.c atiixp/jmicron/triflex: fix PIO fallback 2007-02-17 02:40:20 +01:00
trm290.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
via82cxxx.c [PATCH] via82cxxx: fix typo ("cx7000" should be corrected to "cx700") 2007-02-01 16:24:03 -08:00