android_kernel_xiaomi_sm8350/drivers
Sergei Shtylyov 35af68b53a NAND: Fix NAND ECC errors on AMD Au1550
On AMD Au1550 the static bus controller fails to keep -CE asserted during
chip ready delay on read commands and the NAND chip being used requires this.
So, the current driver allows nand_base.c to drive -CE manually during the
entire sector read. When the PCMCIA driver is enabled however, occasionally
the ECC errors occur on NAND reads. This happens because the PCMCIA driver
polls sockets periodically and reads one of the board's control/status regs
(BCSRs) which are on the same static bus as the NAND flash, and just use
another chip select (and the NOR flash also resides on that bus), so as the
NAND driver forces NAND chip select asserted and the -RE signal is shared, a
contention occurs on the static bus when BCSR or NOR flash is read while we're
reading from NAND.
    So, we either can't keep interrupts enabled during the whole NAND sector
read (which is hardly acceptable), or have to implement some interlocking
scheme between multiple drivers (which is painful, and makes me shudder :-).
    There's a third way which has proven to work: to force -CE asserted only
while we're waiting for a NAND chip to become ready after a read command,
disabling interrupts for a maximum of 25 microseconds (according to Toshiba
TC58DVM92A1FT00 datasheet -- this chip is mentioned in the board schematics);
for Samsung NAND chip which seems to be actually used this delay is even less,
12 us.

Signed-off-by: Konstantin Baydarov <kbaidarov@ru.mvista.com>
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2006-05-16 18:03:18 +01:00
..
acorn
acpi
amba
atm
base [CLASS DEVICE]: add attribute_group creation 2006-05-06 17:55:11 -07:00
block [PATCH] USB: ub oops in block_uevent 2006-05-08 23:43:55 -07:00
bluetooth
cdrom
char [PATCH] tpm_register_hardware gcc 4.1 warning fix 2006-05-15 11:20:57 -07:00
connector
cpufreq [PATCH] x86_64: Move ondemand timer into own work queue 2006-05-08 09:34:56 -07:00
crypto
dio
edac [PATCH] EDAC Coexistence with BIOS 2006-05-03 20:05:41 -07:00
eisa
fc4
firmware [PATCH] DMI: move dmi_scan.c from arch/i386 to drivers/firmware/ 2006-04-14 11:41:25 -07:00
hwmon [PATCH] w83792d: Be quiet on misdetection 2006-04-14 11:18:33 -07:00
i2c [PATCH] scx200_acb: Fix for the CS5535 errata 2006-05-09 13:04:21 -07:00
ide [PATCH] ide_cs: Add IBM microdrive to known IDs 2006-05-15 11:20:58 -07:00
ieee1394
infiniband IB: refcount race fixes 2006-05-12 14:57:52 -07:00
input Merge master.kernel.org:/home/rmk/linux-2.6-arm 2006-05-04 14:52:43 -07:00
isdn [PATCH] gigaset: endian fix 2006-05-15 11:20:57 -07:00
leds [PATCH] LED: Fix sysfs store function error handling 2006-05-15 11:20:56 -07:00
macintosh [PATCH] powerpc: fix oops in alsa powermac driver 2006-04-21 22:34:26 +10:00
mca
md [PATCH] md: Fix 'rdev->nr_pending' count when retrying barrier requests 2006-05-01 18:17:42 -07:00
media [ALSA] add __devinitdata to all pci_device_id 2006-04-27 21:10:34 +02:00
message [SCSI] mptfc: race between mptfc_register_dev and mptfc_target_alloc 2006-05-10 09:54:42 -05:00
mfd
misc
mmc [MMC] Move set_ios debugging into mmc.c 2006-05-04 18:22:51 +01:00
mtd NAND: Fix NAND ECC errors on AMD Au1550 2006-05-16 18:03:18 +01:00
net [PATCH] dl2k needs dma-mapping.h 2006-05-15 11:20:58 -07:00
nubus
oprofile
parisc [PARISC] Document that we tolerate "Relaxed Ordering" 2006-04-21 22:20:33 +00:00
parport [PATCH] parport_pc: fix section mismatch warnings (v2) 2006-04-19 09:13:52 -07:00
pci [PATCH] smbus unhiding kills thermal management 2006-05-15 11:20:57 -07:00
pcmcia [PATCH] pcmcia Oopses fixes 2006-05-15 11:20:54 -07:00
pnp [PATCH] pnp: fix two messages in manager.c 2006-04-19 09:13:52 -07:00
rapidio
rtc [ARM] rtc-sa1100: fix compiler warnings and error cleanup 2006-05-06 11:29:21 +01:00
s390 [PATCH] s390: lcs incorrect test 2006-05-15 11:20:55 -07:00
sbus [SPARC]: Fix warning on prom_getproperty in openprom.c 2006-05-12 12:53:59 -07:00
scsi Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 2006-05-11 15:34:33 -07:00
serial Merge master.kernel.org:/home/rmk/linux-2.6-serial 2006-05-11 15:46:42 -07:00
sh
sn [PATCH] Altix: correct ioc4 port order 2006-05-03 20:05:41 -07:00
spi
tc
telephony
usb [PATCH] USB: fix omninet driver bug 2006-05-12 11:58:10 -07:00
video [PATCH] Backlight/LCD Class: Fix sysfs _store error handling 2006-05-15 11:20:56 -07:00
w1
zorro
Kconfig [IA64] IOC4 config option ordering 2006-04-21 10:59:00 -07:00
Makefile