kernel_optimize_test/drivers/mtd
Ezequiel Garcia 15b540c71c mtd: nand: pxa3xx: Use info->use_dma to release DMA resources
In commit:

  commit 62e8b85178
  Author: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
  Date:   Fri Oct 4 15:30:38 2013 -0300

  mtd: nand: pxa3xx: Allocate data buffer on detected flash size

the way the buffer is allocated was changed: the first READ_ID is issued
with a small kmalloc'ed buffer. Only once the flash page size is detected
the DMA buffers are allocated, and info->use_dma is set.

Currently, if the device detection fails, the driver checks the 'use_dma'
module parameter and tries to release unallocated DMA resources.

Fix this by checking the proper indicator of the DMA allocation, which
is 'info->use_dma'.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2013-12-12 15:02:04 -08:00
..
chips
devices mtd: dataflash: Say if we find a device we don't support 2013-11-07 00:08:55 -08:00
lpddr mtd: lpddr_cmds: make function static 2013-10-27 16:27:03 -07:00
maps mtd: plat-ram: Use module_platform_driver 2013-11-06 23:32:55 -08:00
nand mtd: nand: pxa3xx: Use info->use_dma to release DMA resources 2013-12-12 15:02:04 -08:00
onenand tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
tests mtd: nand: add a helper to detect the nand type 2013-10-27 16:27:06 -07:00
ubi MTD merge for 3.13 2013-11-14 12:31:43 +09:00
afs.c
ar7part.c
bcm47xxpart.c mtd: bcm47xxpart: detect "factory" partition 2013-11-06 23:32:58 -08:00
bcm63xxpart.c
cmdlinepart.c
ftl.c
inftlcore.c mtd: nand: add a helper to detect the nand type 2013-10-27 16:27:06 -07:00
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c
mtdblock_ro.c mtd: Move major number definitions to major.h 2013-11-06 23:32:59 -08:00
mtdblock.c mtd: Move major number definitions to major.h 2013-11-06 23:32:59 -08:00
mtdchar.c mtd: mtdchar: return expected errors on mmap() call 2013-11-11 11:18:15 -08:00
mtdconcat.c
mtdcore.c mtd: remove duplicated include from mtdcore.c 2013-11-06 23:33:12 -08:00
mtdcore.h
mtdoops.c
mtdpart.c
mtdsuper.c mtd: Move major number definitions to major.h 2013-11-06 23:32:59 -08:00
mtdswap.c
nftlcore.c mtd: nand: add a helper to detect the nand type 2013-10-27 16:27:06 -07:00
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c mtd: nand: add a helper to detect the nand type 2013-10-27 16:27:06 -07:00