Watch
1
0
Fork
You've already forked kernel_a52xq
0
mirror of https://github.com/a52xq-dev/kernel.git synced 2026-11-22 01:46:57 +07:00
kernel_a52xq/drivers/mtd/nand/raw
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Mack bd9c3f9b3c mtd: rawnand: marvell: add suspend and resume hooks
This patch restores the suspend and resume hooks that the old driver used
to have. Apart from stopping and starting the clocks, the resume callback
also nullifies the selected_chip pointer, so the next command that is issued
will re-select the chip and thereby restore the timing registers.

Factor out some code from marvell_nfc_init() into a new function
marvell_nfc_reset() and also call it at resume time to reset some registers
that don't retain their contents during low-power mode.

Without this patch, a PXA3xx based system would cough up an error similar to
the one below after resume.

[   44.660162] marvell-nfc 43100000.nand-controller: Timeout waiting for  RB signal
[   44.671492] ubi0 error: ubi_io_write: error -110 while writing 2048 bytes to PEB 102:38912, written 0 bytes
[   44.682887] CPU: 0 PID: 1417 Comm: remote-control Not tainted 4.18.0-rc2+ #344
[   44.691197] Hardware name: Marvell PXA3xx (Device Tree Support)
[   44.697111] Backtrace:
[   44.699593] [<c0106458>] (dump_backtrace) from [<c0106718>] (show_stack+0x18/0x1c)
[   44.708931]  r7:00000800 r6:00009800 r5:00000066 r4:c6139000
[   44.715833] [<c0106700>] (show_stack) from [<c0678a60>] (dump_stack+0x20/0x28)
[   44.724206] [<c0678a40>] (dump_stack) from [<c0456cbc>] (ubi_io_write+0x3d4/0x630)
[   44.732925] [<c04568e8>] (ubi_io_write) from [<c0454428>] (ubi_eba_write_leb+0x690/0x6fc)
...

Fixes: 02f26ecf8c ("mtd: nand: add reworked Marvell NAND controller driver")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2018-07-18 10:10:14 +02:00
..
atmel mtd: rawnand: atmel: add module param to avoid using dma 2018-07-02 09:01:29 +02:00
bcm47xxnflash
brcmnand
gpmi-nand mtd: rawnand: gpmi: Switch to SPDX identifier 2018-07-18 10:10:13 +02:00
ams-delta.c
au1550nd.c
cafe_nand.c mtd: rawnand: Kill cafe_nand_bug() 2018-07-18 09:34:20 +02:00
cmx270_nand.c
cs553x_nand.c
davinci_nand.c ARM: SoC platform updates 2018-06-11 17:49:09 -07:00
denali.c mtd: rawnand: denali: optimize timing parameters for data interface 2018-07-18 09:24:14 +02:00
denali.h mtd: rawnand: denali: optimize timing parameters for data interface 2018-07-18 09:24:14 +02:00
denali_dt.c mtd: rawnand: denali: optimize timing parameters for data interface 2018-07-18 09:24:14 +02:00
denali_pci.c mtd: rawnand: denali: optimize timing parameters for data interface 2018-07-18 09:24:14 +02:00
diskonchip.c mtd: rawnand: Kill the chip->scan_bbt() hook 2018-07-18 10:10:12 +02:00
docg4.c mtd: rawnand: docg4: fix the probe function error path 2018-07-18 09:24:15 +02:00
fsl_elbc_nand.c mtd: rawnand: fsl_elbc: fix probe function error path 2018-04-29 08:56:42 +02:00
fsl_ifc_nand.c mtd: rawnand: fsl_ifc: fix FSL NAND driver to read all ONFI parameter pages 2018-05-09 16:04:21 +02:00
fsl_upm.c
fsmc_nand.c mtd: rawnand: fsmc: fix the probe function error path 2018-04-29 08:56:43 +02:00
gpio.c
hisi504_nand.c mtd: rawnand: hisi504: fix the probe function error path 2018-04-29 08:56:44 +02:00
jz4740_nand.c
jz4780_bch.c
jz4780_bch.h
jz4780_nand.c
Kconfig mtd: rawnand: nuc900: Allow selection of this driver when COMPILE_TEST=y 2018-07-18 09:34:19 +02:00
lpc32xx_mlc.c mtd: rawnand: lpc32xx_mlc: fix the probe function error path 2018-04-29 08:56:45 +02:00
lpc32xx_slc.c mtd: rawnand: lpc32xx_slc: fix the probe function error path 2018-04-29 08:56:46 +02:00
Makefile mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver 2018-07-02 09:02:06 +02:00
marvell_nand.c mtd: rawnand: marvell: add suspend and resume hooks 2018-07-18 10:10:14 +02:00
mpc5121_nfc.c
mtk_ecc.c mtd: rawnand: mtk: use of_device_get_match_data() 2018-04-29 08:56:41 +02:00
mtk_ecc.h
mtk_nand.c mtd: rawnand: mtk: use of_device_get_match_data() 2018-04-29 08:56:41 +02:00
mxc_nand.c mtd: rawnand: mxc: Switch to SPDX identifier 2018-07-18 10:10:13 +02:00
nand_amd.c
nand_base.c mtd: rawnand: Kill the chip->scan_bbt() hook 2018-07-18 10:10:12 +02:00
nand_bbt.c mtd: rawnand: Rename nand_default_bbt() into nand_create_bbt() 2018-07-18 09:34:22 +02:00
nand_bch.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
nand_ecc.c
nand_hynix.c mtd: rawnand: hynix: fix decoding the OOB size on H27UCG8T2BTR 2018-07-02 09:01:38 +02:00
nand_ids.c
nand_macronix.c mtd: rawnand: All AC chips have a broken GET_FEATURES(TIMINGS). 2018-06-22 00:31:22 +02:00
nand_micron.c mtd: rawnand: micron: add fixup for ONFI revision 2018-07-02 09:02:28 +02:00
nand_samsung.c
nand_timings.c
nand_toshiba.c
nandsim.c mtd: rawnand: Kill the chip->scan_bbt() hook 2018-07-18 10:10:12 +02:00
ndfc.c
nuc900_nand.c
omap2.c
omap_elm.c
orion_nand.c mtd: rawnand: orion_nand: Kill orion_nand_data.dev_ready() 2018-07-18 10:10:12 +02:00
oxnas_nand.c
pasemi_nand.c
plat_nand.c mtd: rawnand: plat_nand: Kill pdata->ctrl.{hwcontrol, read_byte}() 2018-07-18 10:10:12 +02:00
qcom_nandc.c mtd: rawnand: qcom: erased page bitflips detection 2018-07-18 09:24:16 +02:00
r852.c
r852.h
s3c2410.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
sh_flctl.c
sharpsl.c mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers 2018-07-18 09:34:16 +02:00
sm_common.c
sm_common.h
socrates_nand.c
sunxi_nand.c mtd: rawnand: sunxi: Remove support for GPIO-based Ready/Busy polling 2018-04-29 08:56:41 +02:00
tango_nand.c
tegra_nand.c mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver 2018-07-02 09:02:06 +02:00
tmio_nand.c
txx9ndfmc.c
vf610_nfc.c
xway_nand.c