linux_dsm_epyc7002/drivers/mtd/nand
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
..
bcm47xxnflash
gpmi-nand
ams-delta.c
atmel_nand_ecc.h
atmel_nand_nfc.h
atmel_nand.c Merge branch 'next' of git://git.infradead.org/users/vkoul/slave-dma 2013-11-20 13:20:24 -08:00
au1550nd.c
bf5xx_nand.c
cafe_nand.c
cmx270_nand.c
cs553x_nand.c
davinci_nand.c
denali_dt.c
denali_pci.c
denali.c
denali.h
diskonchip.c
docg4.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-11-15 16:47:22 -08:00
fsl_elbc_nand.c MTD merge for 3.13 2013-11-14 12:31:43 +09:00
fsl_ifc_nand.c MTD merge for 3.13 2013-11-14 12:31:43 +09:00
fsl_upm.c
fsmc_nand.c dmaengine: remove DMA unmap flags 2013-11-14 11:04:38 -08:00
gpio.c
jz4740_nand.c
Kconfig
lpc32xx_mlc.c
lpc32xx_slc.c
Makefile
mpc5121_nfc.c
mxc_nand.c tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
nand_base.c
nand_bbt.c
nand_bch.c
nand_ecc.c
nand_ids.c
nandsim.c MTD merge for 3.13 2013-11-14 12:31:43 +09:00
ndfc.c
nuc900_nand.c
omap2.c
orion_nand.c
pasemi_nand.c
plat_nand.c
pxa3xx_nand.c mtd: nand: pxa3xx: Use info->use_dma to release DMA resources 2013-12-12 15:02:04 -08:00
r852.c tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
r852.h
s3c2410.c
sh_flctl.c
sharpsl.c
sm_common.c
sm_common.h
socrates_nand.c MTD merge for 3.13 2013-11-14 12:31:43 +09:00
tmio_nand.c
txx9ndfmc.c
xway_nand.c