[v4 0/3] suspend/resume support for OMAP nand driver

2013-06-12 Thread Pekon Gupta
This patch series adds low power transition support for OMAP NAND driver. [Patch 1/3]: Adds pm_runtime calls to handle GPMC module probe and remove [Patch 2/3]: Adds GPMC suspend/resume support. [Patch 3/3]: Adds ELM suspend/resume support. Tested on am335x-evm with NAND flash support, using

[v4 1/3] arm: gpmc: Converts GPMC driver to pm_runtime capable

2013-06-12 Thread Pekon Gupta
From: avinash philip avinashphi...@ti.com Support for pm_runtime add to GPMC driver. Signed-off-by: Philip Avinash avinashphi...@ti.com Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/mach-omap2/gpmc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm

[v4 2/3] arm: gpmc: Low power transition support

2013-06-12 Thread Pekon Gupta
From: avinash philip avinashphi...@ti.com With GPMC converted to platform driver recently, adds low power transition support in driver itself. Signed-off-by: Philip Avinash avinashphi...@ti.com Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/mach-omap2/gpmc.c | 19 +++ 1

[v4 3/3] mtd: devices: elm: Low power transition support

2013-06-12 Thread Pekon Gupta
From: avinash philip avinashphi...@ti.com In low power modes of AM335X platforms, peripherals power is cut off. This patch supports low power sleep transition support for ELM driver. Signed-off-by: Philip Avinash avinashphi...@ti.com Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd

[PATCH v4 0/3] suspend/resume support for OMAP nand driver

2013-06-12 Thread Pekon Gupta
This patch series adds low power transition support for OMAP NAND driver. [Patch 1/3]: Adds pm_runtime calls to handle GPMC module probe and remove [Patch 2/3]: Adds GPMC suspend/resume support. [Patch 3/3]: Adds ELM suspend/resume support. Tested on am335x-evm with NAND flash support, using

[PATCH v4 3/3] mtd: devices: elm: Low power transition support

2013-06-12 Thread Pekon Gupta
From: avinash philip avinashphi...@ti.com In low power modes of AM335X platforms, peripherals power is cut off. This patch supports low power sleep transition support for ELM driver. Signed-off-by: Philip Avinash avinashphi...@ti.com Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd

[PATCH v4 1/3] arm: gpmc: Converts GPMC driver to pm_runtime capable

2013-06-12 Thread Pekon Gupta
From: avinash philip avinashphi...@ti.com Support for pm_runtime add to GPMC driver. Signed-off-by: Philip Avinash avinashphi...@ti.com Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/mach-omap2/gpmc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm

[PATCH v4 2/3] arm: gpmc: Low power transition support

2013-06-12 Thread Pekon Gupta
From: avinash philip avinashphi...@ti.com With GPMC converted to platform driver recently, adds low power transition support in driver itself. Signed-off-by: Philip Avinash avinashphi...@ti.com Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/mach-omap2/gpmc.c | 19 +++ 1

[PATCH v5 1/3] ARM: OMAP2+: gpmc: Converts GPMC driver to pm_runtime capable

2013-06-17 Thread Pekon Gupta
From: avinash philip avinashphi...@ti.com Support for pm_runtime add to GPMC driver. Signed-off-by: Philip Avinash avinashphi...@ti.com Signed-off-by: Pekon Gupta pe...@ti.com Signed-off-by: Tony Lindgren t...@atomide.com --- arch/arm/mach-omap2/gpmc.c | 8 ++-- 1 file changed, 6 insertions

[PATCH v5 3/3] mtd: devices: elm: Low power transition support

2013-06-17 Thread Pekon Gupta
power-off/on transitions. Signed-off-by: Philip Avinash avinashphi...@ti.com Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/devices/elm.c | 117 ++ 1 file changed, 117 insertions(+) diff --git a/drivers/mtd/devices/elm.c b/drivers/mtd/devices

[PATCH v5 2/3] arm: gpmc: Low power transition support

2013-06-17 Thread Pekon Gupta
()/gpmc_resume() are called by default by core PM framework as part of driver's runtime PM callbacks. Signed-off-by: Philip Avinash avinashphi...@ti.com Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/mach-omap2/gpmc.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions

[PATCH v5 0/3] suspend/resume support for OMAP nand driver

2013-06-17 Thread Pekon Gupta
This patch series adds runtime PM support (specifically suspend/resume) for GPMC and ELM drivers. [Patch 1/3]: Adds pm_runtime calls to handle GPMC module probe and remove [Patch 2/3]: Adds GPMC suspend/resume support. [Patch 3/3]: Adds ELM suspend/resume support. Tested on am335x-evm with NAND

[PATCH] ARM: dts: AM33xx: cleaned GPMC DT for AM33xx series

2013-06-18 Thread Pekon Gupta
f34f37160c2960a763ed05d1e13b2ea75a48d0fb ARM: OMAP2+: gpmc: get number of useable GPMC chip-select(pe...@ti.com) Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 1 - arch/arm/boot/dts/am33xx.dtsi| 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/am335x

[PATCH v3 4/4] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-06-22 Thread Pekon Gupta
DT property values for OMAP based gpmc-nand have been updated to match changes in commit: 6faf096 ARM: OMAP2+: cleaned-up DT support of various ECC schemes Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/boot/dts/am335x

[PATCH v3 1/4] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-06-22 Thread Pekon Gupta
) | +---+---+---+ This patch - separates the configurations for various ECC schemes. - fixes dependency issues based on Kconfig options. - cleans up redundant code Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 504 +++--- include/linux

[PATCH v3 3/4] mtd:nand:omap2: updated support for BCH4 ECC scheme

2013-06-22 Thread Pekon Gupta
requires, Kconfig: CONFIG_MTD_NAND_ECC_BCH: enables S/W based BCH ECC algorithm. - Selection of OMAP_ECC_BCHx_CODE_HW requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Signed-off-by: Pekon Gupta pe...@ti.com Tested-by: jean-philippe francois jp.franc

[PATCH v3 0/4] mtd:nand:omap2: clean-up of supported ECC schemes

2013-06-22 Thread Pekon Gupta
: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Gupta, Pekon (3): mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe ARM: OMAP2+: cleaned-up DT support of various ECC schemes mtd:nand:omap2: updated support for BCH4 ECC scheme Pekon Gupta (1): ARM: dts

[PATCH v3 2/4] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-06-22 Thread Pekon Gupta
based BCH ECC algorithm Signed-off-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 44 -- arch/arm/mach-omap2/gpmc.c | 14 --- include/linux/platform_data/mtd-nand-omap2.h | 22 +++ 3 files changed, 56

[PATCH v3 1/4] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-06-23 Thread Pekon Gupta
the configurations for various ECC schemes. - fixes dependency issues based on Kconfig options. - cleans up redundant code Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 504 +++--- include/linux/platform_data/elm.h | 4 + 2 files

[PATCH v3 0/4] mtd:nand:omap2: clean-up of supported ECC schemes

2013-06-23 Thread Pekon Gupta
requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Pekon Gupta (4): mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe ARM: OMAP2+: cleaned-up DT support of various ECC schemes mtd:nand:omap2: updated support for BCH4 ECC scheme ARM: dts

[PATCH v3 3/4] mtd:nand:omap2: updated support for BCH4 ECC scheme

2013-06-23 Thread Pekon Gupta
: CONFIG_MTD_NAND_ECC_BCH: enables S/W based BCH ECC algorithm. - Selection of OMAP_ECC_BCHx_CODE_HW requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Signed-off-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 27 +++- drivers/mtd/nand

[PATCH v3 4/4] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-06-23 Thread Pekon Gupta
DT property values for OMAP based gpmc-nand have been updated to match changes in commit: 6faf096 ARM: OMAP2+: cleaned-up DT support of various ECC schemes Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/boot/dts/am335x

[PATCH v3 2/4] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-06-23 Thread Pekon Gupta
-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 44 -- arch/arm/mach-omap2/gpmc.c | 14 --- include/linux/platform_data/mtd-nand-omap2.h | 22 +++ 3 files changed, 56 insertions(+), 24 deletions

[PATCH v4 0/4] mtd:nand:omap2: clean-up of supported ECC schemes

2013-07-01 Thread Pekon Gupta
) | +---+---+---+ - Selection of OMAP_ECC_BCHx_CODE_HW_DETECTION_SW requires, Kconfig: CONFIG_MTD_NAND_ECC_BCH: enables S/W based BCH ECC algorithm. - Selection of OMAP_ECC_BCHx_CODE_HW requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Pekon Gupta (4): mtd:nand:omap2: clean-up

[PATCH v4 3/4] mtd:nand:omap2: updated support for BCH4 ECC scheme

2013-07-01 Thread Pekon Gupta
: CONFIG_MTD_NAND_ECC_BCH: enables S/W based BCH ECC algorithm. - Selection of OMAP_ECC_BCHx_CODE_HW requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Signed-off-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 27 +++- drivers/mtd/nand

[PATCH v4 2/4] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-07-01 Thread Pekon Gupta
-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 44 -- arch/arm/mach-omap2/gpmc.c | 14 --- include/linux/platform_data/mtd-nand-omap2.h | 22 +++ 3 files changed, 56 insertions(+), 24 deletions

[PATCH v4 1/4] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-07-01 Thread Pekon Gupta
the configurations for various ECC schemes. - fixes dependency issues based on Kconfig options. - cleans up redundant code Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 504 +++--- include/linux/platform_data/elm.h | 4 + 2 files

[PATCH v4 4/4] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-07-01 Thread Pekon Gupta
DT property values for OMAP based gpmc-nand have been updated to match changes in commit: 6faf096 ARM: OMAP2+: cleaned-up DT support of various ECC schemes Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/boot/dts/am335x

[PATCH v4 0/4] mtd:nand:omap2: clean-up of supported ECC schemes

2013-07-02 Thread Pekon Gupta
. Pekon Gupta (4): mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe ARM: OMAP2+: cleaned-up DT support of various ECC schemes mtd:nand:omap2: updated support for BCH4 ECC scheme ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt .../devicetree

[PATCH v4 1/4] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-07-02 Thread Pekon Gupta
the configurations for various ECC schemes. - fixes dependency issues based on Kconfig options. - cleans up redundant code Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 504 +++--- include/linux/platform_data/elm.h | 4 + 2 files

[PATCH v4 3/4] mtd:nand:omap2: updated support for BCH4 ECC scheme

2013-07-02 Thread Pekon Gupta
: CONFIG_MTD_NAND_ECC_BCH: enables S/W based BCH ECC algorithm. - Selection of OMAP_ECC_BCHx_CODE_HW requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Signed-off-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 27 +++- drivers/mtd/nand

[PATCH v4 4/4] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-07-02 Thread Pekon Gupta
DT property values for OMAP based gpmc-nand have been updated to match changes in commit: 6faf096 ARM: OMAP2+: cleaned-up DT support of various ECC schemes Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/boot/dts/am335x

[PATCH v4 2/4] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-07-02 Thread Pekon Gupta
-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 44 -- arch/arm/mach-omap2/gpmc.c | 14 --- include/linux/platform_data/mtd-nand-omap2.h | 22 +++ 3 files changed, 56 insertions(+), 24 deletions

[PATCH v5 3/4] mtd:nand:omap2: updated support for BCH4 ECC scheme

2013-07-13 Thread Pekon Gupta
: CONFIG_MTD_NAND_ECC_BCH: enables S/W based BCH ECC algorithm. - Selection of OMAP_ECC_BCHx_CODE_HW requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Signed-off-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 27 +++- drivers/mtd/nand

[PATCH v5 2/4] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-07-13 Thread Pekon Gupta
the configurations for various ECC schemes. - fixes dependency issues based on Kconfig options. - cleans up redundant code Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 505 +++ 1 file changed, 249 insertions(+), 256 deletions

[PATCH v5 4/4] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-07-13 Thread Pekon Gupta
DT property values for OMAP based gpmc-nand have been updated to match changes in commit: 6faf096 ARM: OMAP2+: cleaned-up DT support of various ECC schemes Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/boot/dts/am335x

[PATCH v5 0/4] mtd:nand:omap2: clean-up of supported ECC schemes

2013-07-13 Thread Pekon Gupta
of OMAP_ECC_BCHx_CODE_HW requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Pekon Gupta (4): ARM: OMAP2+: cleaned-up DT support of various ECC schemes mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe mtd:nand:omap2: updated support

[PATCH v5 1/4] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-07-13 Thread Pekon Gupta
-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 45 -- arch/arm/mach-omap2/gpmc.c | 14 --- include/linux/platform_data/mtd-nand-omap2.h | 22 +++ 3 files changed, 57 insertions(+), 24 deletions

[PATCH v1 3/5] mtd: nand: omap: optimize chip-ecc.hwctl() for H/W ECC schemes

2013-07-15 Thread Pekon Gupta
() Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 216 +-- 1 file changed, 79 insertions(+), 137 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 7f7a2ee..a259761 100644 --- a/drivers/mtd/nand/omap2.c

[PATCH v1 4/5] mtd: devices: elm: add checks ELM H/W constrains, driver code cleanup

2013-07-15 Thread Pekon Gupta
ELM register configs based on number of info-eccsteps - cleans-up elm_load_syndrome() Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/devices/elm.c | 114 ++ drivers/mtd/nand/omap2.c | 2 +- include/linux/platform_data/elm.h | 6 +- 3

[PATCH v1 2/5] mtd: nand: omap: optimize chip-ecc.calculate() for H/W ECC schemes

2013-07-15 Thread Pekon Gupta
for BCH4_HW and BCH8_HW - [new] omap_calculate_ecc_bch(): Now used for all BCHx_ECC Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 249 ++- 1 file changed, 95 insertions(+), 154 deletions(-) diff --git a/drivers/mtd/nand

[PATCH v1 1/5] mtd: nand: omap: optimized chip-ecc.correct() for H/W ECC schemes

2013-07-15 Thread Pekon Gupta
are handled in same way as for programmed-page Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 249 ++- 1 file changed, 75 insertions(+), 174 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index

[PATCH v1 0/5] optimize and clean-up of OMAP NAND and ELM driver

2013-07-15 Thread Pekon Gupta
] NAND code clean-up to improve readability. Pekon Gupta (5): mtd: nand: omap: optimized chip-ecc.correct() for H/W ECC schemes mtd: nand: omap: optimize chip-ecc.calculate() for H/W ECC schemes mtd: nand: omap: optimize chip-ecc.hwctl() for H/W ECC schemes mtd: devices: elm: add checks ELM H/W

[PATCH v1 5/5] mtd: nand: omap: code clean-up and white-space fixes

2013-07-15 Thread Pekon Gupta
This patch just clean-up the code and fixes spaces in omap_nand_probe() s/info-nand./chip- s/info-mtd/mtd Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 210 +++ 1 file changed, 102 insertions(+), 108 deletions(-) diff --git

[PATCH v1 1/4] mtd: nand: omap: add support for BCH16_ECC - DT updates

2013-07-17 Thread Pekon Gupta
) Signed-off-by: Pekon Gupta pe...@ti.com --- Documentation/devicetree/bindings/mtd/gpmc-nand.txt | 7 +++ include/linux/platform_data/mtd-nand-omap2.h| 7 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/gpmc-nand.txt b

[PATCH v1 2/4] mtd: nand: omap: add support for BCH16_ECC - ELM driver updates

2013-07-17 Thread Pekon Gupta
) Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/devices/elm.c | 29 + include/linux/platform_data/elm.h | 8 +--- 2 files changed, 30 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/devices/elm.c b/drivers/mtd/devices/elm.c index fca436e..f50f36b

[PATCH v1 0/4] mtd: nand: omap: add support for BCH16_ECC

2013-07-17 Thread Pekon Gupta
this BCH16_ECC patch series is sparsely tested, due to limited availability of boards with 4K/224NAND, so request the users to test the mentioned series, and provide Tested-by. Pekon Gupta (4): mtd: nand: omap: add support for BCH16_ECC - DT updates mtd: nand: omap: add support for BCH16_ECC

[PATCH v1 4/4] mtd: nand: omap: add support for BCH16_ECC - NAND driver updates

2013-07-17 Thread Pekon Gupta
) Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 104 +++ 1 file changed, 96 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index c2c3c6bb..a0cf487 100644 --- a/drivers/mtd/nand/omap2.c

[PATCH v1 3/4] mtd: nand: omap: add support for BCH16_ECC - GPMC driver updates

2013-07-17 Thread Pekon Gupta
) Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/mach-omap2/gpmc.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index e19de21..0d5639e 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach

[PATCH v6 2/4] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-09-12 Thread Pekon Gupta
- fixes dependency issues based on Kconfig options - updates ELM device detection in is_elm_present() - cleans redundant code Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 530 +-- include/linux/platform_data/mtd-nand-omap2.h

[PATCH v6 3/4] mtd:nand:omap2: updated support for BCH4 ECC scheme

2013-09-12 Thread Pekon Gupta
: CONFIG_MTD_NAND_ECC_BCH: enables S/W based BCH ECC algorithm. - Selection of OMAP_ECC_BCHx_CODE_HW requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/Kconfig | 30 ++- drivers/mtd/nand/omap2.c | 136

[PATCH v6 0/4] mtd:nand:omap2: clean-up of supported ECC schemes

2013-09-12 Thread Pekon Gupta
of OMAP_ECC_BCHx_CODE_HW requires, Kconfig: CONFIG_MTD_NAND_OMAP_BCH: enables ELM H/W module. Pekon Gupta (4): ARM: OMAP2+: cleaned-up DT support of various ECC schemes mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe mtd:nand:omap2: updated support for BCH4 ECC scheme

[PATCH v6 4/4] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-09-12 Thread Pekon Gupta
DT property values for OMAP based gpmc-nand have been updated to match changes in commit: 6faf096 ARM: OMAP2+: cleaned-up DT support of various ECC schemes Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/boot/dts/am335x

[PATCH v6 1/4] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-09-12 Thread Pekon Gupta
ECC schemes OMAP_ECC_HAMMING_CODE_DEFAULT (S/W based 1-bit Hamming ECC) OMAP_ECC_HAMMING_CODE_HW_ROMCODE (H/W based 1-bit Hamming ECC scheme) - updates DT binding documentation for mtd/gpmc-nand Signed-off-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt

[PATCH v7 0/6] mtd:nand:omap2: clean-up of supported ECC schemes

2013-10-04 Thread Pekon Gupta
- Kconfig:CONFIG_MTD_NAND_ECC_BCHerror detection done in software - Kconfig:CONFIG_MTD_NAND_OMAP_BCH error detection done by h/w engine Pekon Gupta (6): mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes ARM: OMAP2+: cleaned-up DT support of various ECC schemes

[PATCH v7 1/6] mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes

2013-10-04 Thread Pekon Gupta
-off-by: Pekon Gupta pe...@ti.com --- Documentation/devicetree/bindings/mtd/gpmc-nand.txt | 8 arch/arm/mach-omap2/board-flash.c | 2 +- arch/arm/mach-omap2/gpmc.c | 4 +--- drivers/mtd/nand/omap2.c| 9 +++-- include

[PATCH v7 2/6] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-10-04 Thread Pekon Gupta
of h/w or s/w implementation depends on ti,elm-id Signed-off-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 8 +++- arch/arm/mach-omap2/gpmc.c | 47 -- include/linux/platform_data/mtd-nand-omap2.h | 14

[PATCH v7 5/6] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-10-04 Thread Pekon Gupta
DT property values for OMAP based gpmc-nand have been updated to match changes in commit: 6faf096 ARM: OMAP2+: cleaned-up DT support of various ECC schemes Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/boot/dts/am335x

[PATCH v7 4/6] mtd:nand:omap2: updated support for BCH4 ECC scheme

2013-10-04 Thread Pekon Gupta
: enables ELM H/W module. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/Kconfig | 30 ++- drivers/mtd/nand/omap2.c | 134 +-- 2 files changed, 63 insertions(+), 101 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd

[PATCH v7 3/6] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-10-04 Thread Pekon Gupta
- fixes dependency issues based on Kconfig options - updates ELM device detection in is_elm_present() - cleans redundant code Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 450 +++ 1 file changed, 220 insertions(+), 230 deletions

[PATCH v7 6/6] mtd: nand: omap: updated devm_xx for all resource allocation and free calls

2013-10-04 Thread Pekon Gupta
handles freeing of resource allocation in most of the cases, but using devm_xx provides more clean and effortless approach to handle all such cases. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 38 +- 1 file changed, 21 insertions(+), 17

[PATCH v8 0/6] mtd:nand:omap2: clean-up of supported ECC schemes

2013-10-11 Thread Pekon Gupta
, in addition to setting appropriate DT bindings - Kconfig:CONFIG_MTD_NAND_ECC_BCHerror detection done in software - Kconfig:CONFIG_MTD_NAND_OMAP_BCH error detection done by h/w engine Pekon Gupta (6): mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes ARM

[PATCH v8 1/6] mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes

2013-10-11 Thread Pekon Gupta
-off-by: Pekon Gupta pe...@ti.com --- Documentation/devicetree/bindings/mtd/gpmc-nand.txt | 8 arch/arm/mach-omap2/board-flash.c | 2 +- arch/arm/mach-omap2/gpmc.c | 4 +--- drivers/mtd/nand/omap2.c| 9 +++-- include

[PATCH v8 2/6] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-10-11 Thread Pekon Gupta
of h/w or s/w implementation depends on ti,elm-id Signed-off-by: Pekon Gupta pe...@ti.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 8 +++- arch/arm/mach-omap2/gpmc.c | 45 -- include/linux/platform_data/mtd-nand-omap2.h | 14

[PATCH v8 3/6] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-10-11 Thread Pekon Gupta
detection in is_elm_present() - cleans redundant code Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 450 +++ 1 file changed, 220 insertions(+), 230 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c

[PATCH v8 4/6] mtd:nand:omap2: updated support for BCH4 ECC scheme

2013-10-11 Thread Pekon Gupta
: enables ELM H/W module. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/Kconfig | 30 ++- drivers/mtd/nand/omap2.c | 134 +-- 2 files changed, 63 insertions(+), 101 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd

[PATCH v8 5/6] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-10-11 Thread Pekon Gupta
Updated DTS to replace deprecated binding with newer values Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 3 +-- arch/arm/boot/dts/omap3430-sdp.dts | 2 +- 2 files changed, 2 insertions(+), 3 deletions

[PATCH v8 6/6] mtd: nand: omap: updated devm_xx for all resource allocation and free calls

2013-10-11 Thread Pekon Gupta
handles freeing of resource allocation in most of the cases, but using devm_xx provides more clean and effortless approach to handle all such cases. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 38 +- 1 file changed, 21 insertions(+), 17

[PATCH v9 1/9] mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes

2013-10-14 Thread Pekon Gupta
-off-by: Pekon Gupta pe...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com Acked-by: Tony Lindgren t...@atomide.com --- Documentation/devicetree/bindings/mtd/gpmc-nand.txt | 8 arch/arm/mach-omap2/board-flash.c | 2 +- arch/arm/mach-omap2/gpmc.c | 4

[PATCH v9 4/9] mtd: nand: omap: enable auto-detection of bus-width for omap-nand drivers

2013-10-14 Thread Pekon Gupta
to autodetect bus width This patch enables this feature for OMAP2 NAND driver Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index

[PATCH v9 3/9] mtd: nand: omap: cleanup: replace local references with generic framework names

2013-10-14 Thread Pekon Gupta
This patch updates following in omap_nand_probe() and omap_nand_remove() - replaces info-nand with nand_chip (struct nand_chip *nand_chip) - replaces info-mtd with mtd (struct mtd_info *mtd) - white-space and formatting cleanup Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c

[PATCH v9 2/9] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-10-14 Thread Pekon Gupta
-off-by: Pekon Gupta pe...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com Acked-by: Tony Lindgren t...@atomide.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 8 +++- arch/arm/mach-omap2/gpmc.c | 45 -- include/linux/platform_data/mtd-nand

[PATCH v9 0/9] mtd:nand:omap2: clean-up of supported ECC schemes

2013-10-14 Thread Pekon Gupta
) | | | +---+---+---+ Pekon Gupta (9): mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes ARM: OMAP2+: cleaned-up DT support of various ECC schemes mtd: nand: omap: cleanup: replace local references with generic framework names mtd: nand: omap: enable auto-detection

[PATCH v9 8/9] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-10-14 Thread Pekon Gupta
Updated DTS to replace deprecated binding with newer values Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 3 +-- arch/arm/boot/dts/omap3430-sdp.dts | 2 +- 2 files

[PATCH v9 6/9] mtd: nand: omap: clean-up ecc layout for BCH ecc schemes

2013-10-14 Thread Pekon Gupta
bytes to store ECC signature of whole page, as defined by ecc-scheme. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 162 ++- 1 file changed, 63 insertions(+), 99 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers

[PATCH v9 5/9] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-10-14 Thread Pekon Gupta
for ECC error detection done in software. (mainly used for legacy platforms which do not have on-chip ELM engine) - 'CONFIG_MTD_NAND_OMAP_BCH' is OMAP specific Kconfig to detemine presence on ELM h/w engine on SoC. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 281

[PATCH v9 9/9] mtd: nand: omap: updated devm_xx for all resource allocation and free calls

2013-10-14 Thread Pekon Gupta
handles freeing of resource allocation in most of the cases, but using devm_xx provides more clean and effortless approach to handle all such cases. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 44 ++-- 1 file changed, 14 insertions

[PATCH v9 7/9] mtd: nand: omap: use drivers/mtd/nand/nand_bch.c wrapper for BCH ECC instead of lib/bch.c

2013-10-14 Thread Pekon Gupta
. This selection is now based on ti,nand-ecc-opt and ti,elm-id DT bindings. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/Kconfig | 30 ++- drivers/mtd/nand/omap2.c | 96 +++- 2 files changed, 26 insertions(+), 100 deletions

[PATCH 1/1] arm: omap: gpmc: remove detection of ecc-capability based on SoC name

2013-10-15 Thread Pekon Gupta
. Signed-off-by: Pekon Gupta pe...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c | 25 - 1 file changed, 25 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index 662c7fd..2b03eba 100644 --- a/arch/arm/mach-omap2/gpmc-nand.c +++ b/arch/arm

[PATCH v10 00/10] mtd:nand:omap2: clean-up of supported ECC schemes

2013-10-19 Thread Pekon Gupta
| | | |ti,elm-id) | | | +---+---+---+ Pekon Gupta (10): ARM: OMAP2+: cleaned-up DT support of various ECC schemes mtd: nand: omap: combine different flavours of 1-bit hamming ecc

[PATCH v10 02/10] mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes

2013-10-19 Thread Pekon Gupta
-off-by: Pekon Gupta pe...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com Acked-by: Tony Lindgren t...@atomide.com --- Documentation/devicetree/bindings/mtd/gpmc-nand.txt | 8 arch/arm/mach-omap2/board-flash.c | 2 +- drivers/mtd/nand/omap2.c| 9

[PATCH v10 05/10] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-10-19 Thread Pekon Gupta
for ECC error detection done in software. (mainly used for legacy platforms which do not have on-chip ELM engine) - 'CONFIG_MTD_NAND_OMAP_BCH' is OMAP specific Kconfig to detemine presence on ELM h/w engine on SoC. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 281

[PATCH v10 10/10] mtd: nand: omap: remove selection of BCH ecc-scheme via KConfig

2013-10-19 Thread Pekon Gupta
or BCH4) from KConfig can be removed Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/Kconfig | 40 ++-- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index d885298..93ae6a6 100644

[PATCH v10 04/10] mtd: nand: omap: fix device scan: NAND_CMD_READID, NAND_CMD_RESET, CMD_CMD_PARAM use only x8 bus

2013-10-19 Thread Pekon Gupta
detected during nand_get_flash_type() then probe returns failure. All other low-level callback updates happen after the device detection. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 45 + 1 file changed, 33 insertions(+), 12

[PATCH v10 01/10] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-10-19 Thread Pekon Gupta
-off-by: Pekon Gupta pe...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com Acked-by: Tony Lindgren t...@atomide.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 8 +++- arch/arm/mach-omap2/gpmc.c | 48 +++--- include/linux/platform_data/mtd-nand

[PATCH v10 09/10] mtd: nand: omap: updated devm_xx for all resource allocation and free calls

2013-10-19 Thread Pekon Gupta
handles freeing of resource allocation in most of the cases, but using devm_xx provides more clean and effortless approach to handle all such cases. - simplifies label for exiting probe during error s/out_release_mem_region/return_error Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand

[PATCH v10 07/10] mtd: nand: omap: use drivers/mtd/nand/nand_bch.c wrapper for BCH ECC instead of lib/bch.c

2013-10-19 Thread Pekon Gupta
is re-used. like; omap3_correct_data_bch() - nand_bch_correct_data() omap3_free_bch() - nand_bch_free() (2) replace direct calls to lib/bch.c with wrapper functions defined in nand_bch.c init_bch() - nand_bch_init() Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand

[PATCH v10 03/10] mtd: nand: omap: cleanup: replace local references with generic framework names

2013-10-19 Thread Pekon Gupta
This patch updates following in omap_nand_probe() and omap_nand_remove() - replaces info-nand with nand_chip (struct nand_chip *nand_chip) - replaces info-mtd with mtd (struct mtd_info *mtd) - white-space and formatting cleanup Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c

[PATCH v10 06/10] mtd: nand: omap: clean-up ecc layout for BCH ecc schemes

2013-10-19 Thread Pekon Gupta
bytes to store ECC signature of whole page, as defined by ecc-scheme. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 161 ++- 1 file changed, 62 insertions(+), 99 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers

[PATCH v10 08/10] ARM: dts: AM33xx: updated default ECC scheme in nand-ecc-opt

2013-10-19 Thread Pekon Gupta
Updated DTS to replace deprecated binding with newer values Refer: Documentation/devicetree/bindings/mtd/gpmc-nand.txt Signed-off-by: Pekon Gupta pe...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 3 +-- arch/arm/boot/dts/omap3430-sdp.dts | 2 +- 2 files

[PATCH v11 03/10] mtd: nand: omap: cleanup: replace local references with generic framework names

2013-10-24 Thread Pekon Gupta
This patch updates following in omap_nand_probe() and omap_nand_remove() - replaces info-nand with nand_chip (struct nand_chip *nand_chip) - replaces info-mtd with mtd (struct mtd_info *mtd) - white-space and formatting cleanup Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c

[PATCH v11 04/10] mtd: nand: omap: use DT specified bus-width only for scanning NAND device

2013-10-24 Thread Pekon Gupta
This patch: - calls nand_scan_ident() using bus-width as passed by DT - removes double calls to nand_scan_ident(), incase first call fails then omap_nand_probe just returns error. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 21 + 1 file changed, 9

[PATCH v11 01/10] ARM: OMAP2+: cleaned-up DT support of various ECC schemes

2013-10-24 Thread Pekon Gupta
-off-by: Pekon Gupta pe...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com Acked-by: Tony Lindgren t...@atomide.com --- .../devicetree/bindings/mtd/gpmc-nand.txt | 8 +++- arch/arm/mach-omap2/gpmc.c | 48 +++--- include/linux/platform_data/mtd-nand

[PATCH v11 07/10] mtd: nand: omap: use drivers/mtd/nand/nand_bch.c wrapper for BCH ECC instead of lib/bch.c

2013-10-24 Thread Pekon Gupta
is re-used. like; omap3_correct_data_bch() - nand_bch_correct_data() omap3_free_bch() - nand_bch_free() (2) replace direct calls to lib/bch.c with wrapper functions defined in nand_bch.c init_bch() - nand_bch_init() Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand

[PATCH v11 02/10] mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes

2013-10-24 Thread Pekon Gupta
-off-by: Pekon Gupta pe...@ti.com Reviewed-by: Felipe Balbi ba...@ti.com Acked-by: Tony Lindgren t...@atomide.com --- Documentation/devicetree/bindings/mtd/gpmc-nand.txt | 8 arch/arm/mach-omap2/board-flash.c | 2 +- drivers/mtd/nand/omap2.c| 9

[PATCH v11 06/10] mtd: nand: omap: clean-up ecc layout for BCH ecc schemes

2013-10-24 Thread Pekon Gupta
bytes to store ECC signature of whole page, as defined by ecc-scheme. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 161 ++- 1 file changed, 62 insertions(+), 99 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers

[PATCH v11 05/10] mtd:nand:omap2: clean-up BCHx_HW and BCHx_SW ECC configurations in device_probe

2013-10-24 Thread Pekon Gupta
for ECC error detection done in software. (mainly used for legacy platforms which do not have on-chip ELM engine) - 'CONFIG_MTD_NAND_OMAP_BCH' is OMAP specific Kconfig to detemine presence on ELM h/w engine on SoC. Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/omap2.c | 281

[PATCH v11 00/10] [PATCH v10 00/10] mtd:nand:omap2: clean-up of supported ECC schemes

2013-10-24 Thread Pekon Gupta
(GPMC) |H/W (ELM) | | (needs CONFIG_MTD_NAND_OMAP_BCH | | | |ti,elm-id) | | | +---+---+---+ Pekon Gupta (10): ARM: OMAP2+: cleaned-up DT

[PATCH v11 09/10] mtd: nand: omap: updated devm_xx for all resource allocation and free calls

2013-10-24 Thread Pekon Gupta
handles freeing of resource allocation in most of the cases, but using devm_xx provides more clean and effortless approach to handle all such cases. - simplifies label for exiting probe during error s/out_release_mem_region/return_error Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand

[PATCH v11 10/10] mtd: nand: omap: remove selection of BCH ecc-scheme via KConfig

2013-10-24 Thread Pekon Gupta
or BCH4) from KConfig can be removed Signed-off-by: Pekon Gupta pe...@ti.com --- drivers/mtd/nand/Kconfig | 40 ++-- 1 file changed, 6 insertions(+), 34 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index d885298..93ae6a6 100644

  1   2   >