1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/mtd/nand/raw
Masahiro Yamada 3f6e698604 mtd: rawnand: denali_dt: set clk_x_rate to 200 MHz unconditionally
Since commit 1bb8866677 ("mtd: nand: denali: handle timing parameters
by setup_data_interface()"), denali_dt.c gets the clock rate from the
clock driver.  The driver expects the frequency of the bus interface
clock, whereas the clock driver of SOCFPGA provides the core clock.
Thus, the setup_data_interface() hook calculates timing parameters
based on a wrong frequency.

To make it work without relying on the clock driver, hard-code the clock
frequency, 200MHz.  This is fine for existing DT of UniPhier, and also
fixes the issue of SOCFPGA because both platforms use 200 MHz for the
bus interface clock.

Fixes: 1bb8866677 ("mtd: nand: denali: handle timing parameters by setup_data_interface()")
Cc: linux-stable <stable@vger.kernel.org> #4.14+
Reported-by: Philipp Rosenberger <p.rosenberger@linutronix.de>
Suggested-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Tested-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
2018-06-22 18:47:56 +02:00
..
atmel MTD changes: 2018-04-06 12:15:41 -07:00
bcm47xxnflash mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
brcmnand mtd: rawnand: brcmnand: fix probe function error path 2018-03-29 09:38:18 +02:00
gpmi-nand mtd: rawnand: gpmi: remove unnecessary variables 2018-04-29 08:56:48 +02:00
ams-delta.c mtd: rawnand: Replace printk() with appropriate pr_*() macro 2018-03-15 15:57:05 +01:00
au1550nd.c
cafe_nand.c rslib: Split rs control struct 2018-04-24 19:50:08 -07:00
cmx270_nand.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
cs553x_nand.c mtd: rawnand: Replace printk() with appropriate pr_*() macro 2018-03-15 15:57:05 +01:00
davinci_nand.c ARM: SoC platform updates 2018-06-11 17:49:09 -07:00
denali.c mtd: rawnand: denali: fix probe function error path 2018-03-29 09:38:19 +02:00
denali.h
denali_dt.c mtd: rawnand: denali_dt: set clk_x_rate to 200 MHz unconditionally 2018-06-22 18:47:56 +02:00
denali_pci.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
diskonchip.c MTD changes: 2018-06-08 10:39:20 -07:00
docg4.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01: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 mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
fsmc_nand.c mtd: rawnand: fsmc: fix the probe function error path 2018-04-29 08:56:43 +02:00
gpio.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
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 mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
Kconfig mtd: Remove depends on HAS_DMA in case of platform dependency 2018-04-21 10:08:51 +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: remove bf5xx_nand driver 2018-03-17 15:35:32 +01:00
marvell_nand.c mtd: rawnand: marvell: Fix read logic for layouts with ->nchunks > 2 2018-05-14 14:46:20 +02:00
mpc5121_nfc.c mtd: rawnand: rename SET/GET FEATURES related functions 2018-03-20 09:33:22 +01:00
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: set spare area size register explicitly 2018-06-19 13:17:59 +02:00
nand_amd.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
nand_base.c mtd: rawnand: fix return value check for bad block status 2018-06-22 00:15:45 +02:00
nand_bbt.c Core changes: 2018-04-04 22:11:36 +02:00
nand_bch.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
nand_ecc.c mtd: rawnand: remove STANDALONE compile mode of nand_ecc 2018-03-15 16:42:33 +01:00
nand_hynix.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01: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 ONFI_FEATURE_ON_DIE_ECC to supported features 2018-06-19 11:12:30 +02:00
nand_samsung.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
nand_timings.c mtd: rawnand: prepare the removal of the ONFI parameter page 2018-03-20 11:59:54 +01:00
nand_toshiba.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
nandsim.c treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
ndfc.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
nuc900_nand.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
omap2.c mtd: rawnand: omap2: fix the probe function error path 2018-03-29 09:38:20 +02:00
omap_elm.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
orion_nand.c
oxnas_nand.c
pasemi_nand.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
plat_nand.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
qcom_nandc.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
r852.c
r852.h
s3c2410.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
sh_flctl.c mtd: rawnand: sh_flctl: fix the probe function error path 2018-03-29 09:38:20 +02:00
sharpsl.c
sm_common.c
sm_common.h mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
socrates_nand.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
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 mtd: rawnand: tango: Fix struct clk memory leak 2018-04-21 00:24:57 +02:00
tmio_nand.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00
txx9ndfmc.c
vf610_nfc.c Linux 4.16-rc2 2018-04-04 22:13:35 +02:00
xway_nand.c mtd: nand: move raw NAND related code to the raw/ subdir 2018-02-16 10:09:34 +01:00