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
Martin Blumenstingl 16c4fba03a mtd: rawnand: hynix: fix decoding the OOB size on H27UCG8T2BTR
The datasheet of the H27UCG8T2BTR states that this chip has a page size
of "16,384 + 1,280(Spare) bytes". The description of the "4th Byte of
Device Identifier Description" indicates that bits 6, 3 and 2 are
encoding the "Redundant Area Size / 8KB", where 640 bytes is a value of
0x6 (110 in binary notation).

hynix_nand_extract_oobsize decodes an OOB size of 640 bytes for this
chip. Kernel boot log extract before this patch:
nand: Could not find valid ONFI parameter page; aborting
nand: device found, Manufacturer ID: 0xad, Chip ID: 0xde
nand: Hynix NAND 8GiB 3,3V 8-bit
nand: 8192 MiB, MLC, erase size: 4096 KiB, page size: 16384,
      OOB size: 640

However, based on the description in the datasheet we need to multiply
the OOB size with 2, because it's "640 spare bytes per 8192 bytes page
size" and this NAND chip has a page size of 16384 (= 2 * 8192). After
this patch the kernel boot log reports:
nand: Could not find valid ONFI parameter page; aborting
nand: device found, Manufacturer ID: 0xad, Chip ID: 0xde
nand: Hynix NAND 8GiB 3,3V 8-bit
nand: 8192 MiB, MLC, erase size: 4096 KiB, page size: 16384,
      OOB size: 1280

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2018-07-02 09:01:38 +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: remove unnecessary variables 2018-04-29 08:56:48 +02:00
ams-delta.c
au1550nd.c
cafe_nand.c rslib: Split rs control struct 2018-04-24 19:50:08 -07:00
cmx270_nand.c
cs553x_nand.c
davinci_nand.c ARM: SoC platform updates 2018-06-11 17:49:09 -07:00
denali.c
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
diskonchip.c MTD changes: 2018-06-08 10:39:20 -07:00
docg4.c
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: 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
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
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
nand_base.c mtd: rawnand: fix return value check for bad block status 2018-06-22 00:15:45 +02:00
nand_bbt.c
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: Update ecc_stats.corrected 2018-07-02 09:01:34 +02:00
nand_samsung.c
nand_timings.c
nand_toshiba.c
nandsim.c treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
ndfc.c
nuc900_nand.c
omap2.c
omap_elm.c
orion_nand.c
oxnas_nand.c
pasemi_nand.c
plat_nand.c
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
sharpsl.c
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 mtd: rawnand: tango: Fix struct clk memory leak 2018-04-21 00:24:57 +02:00
tmio_nand.c
txx9ndfmc.c
vf610_nfc.c
xway_nand.c