u-boot-brain/drivers
Stefan Agner 7653fc288a mtd: vf610_nfc: mark page as dirty on block erase
The driver tries to re-use the page buffer by storing the page
number of the current page in the buffer. The page is only read
if the requested page number is not currently in the buffer. When
a block is erased, the page number is marked as invalid if the
erased page equals the one currently in the cache. However, since
a erase block consists of multiple pages, also other page numbers
could be affected.

The commands to reproduce this issue (on a written page):
> nand dump 0x800
> nand erase 0x0 0x20000
> nand dump 0x800

The second nand dump command returns the data from the buffer,
while in fact the page is erased (0xff).

Avoid the hassle to calculate whether the page is affected or not,
but set the page buffer unconditionally to invalid instead.

Signed-off-by: Stefan Agner <stefan@agner.ch>
2015-03-30 23:33:42 -05:00
..
bios_emulator bios_emulator: Add some VESA interface debugging 2015-01-23 17:24:16 -07:00
block x86: ahci: Make sure interface is not busy after enabling the port 2015-01-23 17:24:53 -07:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
core kconfig: remove unneeded dependency on !SPL_BUILD 2015-02-24 17:06:27 -05:00
crypto Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx 2015-03-05 20:50:30 -05:00
ddr driver/ddr/fsl: Add sync of refresh 2015-02-24 13:09:42 -08:00
demo dm: Add Kconfig for driver/demo 2015-02-12 10:35:33 -07:00
dfu dfu: nand: Verify writes 2015-03-30 23:24:38 -05:00
dma dma: keystone_nav: remove spurious qm_cfg verification 2014-11-06 11:04:39 -05:00
fpga fpga: xilinx: Show fpga info if defined 2015-01-21 10:25:43 +01:00
gpio dm: tegra: Enable driver model in SPL and adjust the GPIO driver 2015-03-04 14:55:04 -05:00
hwmon kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
i2c i2c: mvtwsi: Fix problem with baud rate calculation 2015-03-18 09:48:42 +01:00
input dm: cros_ec: Convert to Kconfig 2015-02-19 06:19:18 -07:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc fsl_sec_mon: Add driver for Security Monitor block of Freescale 2015-03-05 12:04:59 -08:00
mmc ARM: bcm283x: move SoC headers to mach-bcm283x/include/mach 2015-03-28 09:03:09 -04:00
mtd mtd: vf610_nfc: mark page as dirty on block erase 2015-03-30 23:33:42 -05:00
net net: Add Intel Topcliff GMAC driver 2015-03-24 21:22:37 -06:00
pci driver/pci: add Layerscape PCIe driver 2015-02-24 13:10:50 -08:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
power sunxi: axp209: fix incorrect limits on ldo3 2015-03-26 13:17:46 +01:00
pwm pwm, imx6: add support for pwm modul on imx6 2014-07-23 12:25:42 +02:00
qe qe/deep-sleep: modify qe deep-sleep for generic board 2014-12-15 09:16:49 -08:00
rtc remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
serial dm: serial: remove bogus include <ns16550.h> 2015-03-25 16:33:27 -06:00
soc soc: keystone_serdes: generalize configuration mechanism 2014-10-23 11:27:28 -04:00
sound kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
spi dm: Expand and complete Kconfig in drivers/ 2015-02-12 10:35:33 -07:00
thermal dm: Expand and complete Kconfig in drivers/ 2015-02-12 10:35:33 -07:00
tpm Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb sunxi: musb: Fix some lo speed devices not working with musb host 2015-03-29 12:58:59 +02:00
video remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
watchdog ARM: remove tnetv107x board support 2015-02-24 17:07:24 -05:00
Kconfig dm: Expand and complete Kconfig in drivers/ 2015-02-12 10:35:33 -07:00
Makefile Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2014-11-26 11:23:26 -05:00