devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Disable subpage write for k2hk-evm
@ 2014-03-19 22:15 Ivan Khoronzhuk
  2014-03-19 22:15 ` [PATCH 1/2] mtd: davinci-nand: add dts property for NAND_NO_SUBPAGE_WRITE option Ivan Khoronzhuk
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ivan Khoronzhuk @ 2014-03-19 22:15 UTC (permalink / raw)
  To: santosh.shilimkar
  Cc: mark.rutland, devicetree, grygorii.strashko, linux, pawel.moll,
	ijc+devicetree, linux-kernel, robh+dt, galak, Ivan Khoronzhuk,
	linux-arm-kernel

These patches disable subpage write for k2hk-evm.

Based on linux-next
tag: next-20140319

Ivan Khoronzhuk (2):
  mtd: davinci-nand: add dts property for NAND_NO_SUBPAGE_WRITE option
  ARM: dts: keystone: disable subpage write for davinci nand device

 Documentation/devicetree/bindings/mtd/davinci-nand.txt | 2 ++
 arch/arm/boot/dts/k2hk-evm.dts                         | 1 +
 drivers/mtd/nand/davinci_nand.c                        | 3 +++
 3 files changed, 6 insertions(+)

-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] mtd: davinci-nand: add dts property for NAND_NO_SUBPAGE_WRITE option
  2014-03-19 22:15 [PATCH 0/2] Disable subpage write for k2hk-evm Ivan Khoronzhuk
@ 2014-03-19 22:15 ` Ivan Khoronzhuk
  2014-03-19 22:15 ` [PATCH 2/2] ARM: dts: keystone: disable subpage write for davinci nand device Ivan Khoronzhuk
  2014-03-20 13:34 ` [PATCH 0/2] Disable subpage write for k2hk-evm Ivan Khoronzhuk
  2 siblings, 0 replies; 4+ messages in thread
From: Ivan Khoronzhuk @ 2014-03-19 22:15 UTC (permalink / raw)
  To: santosh.shilimkar
  Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux,
	devicetree, linux-arm-kernel, linux-kernel, grygorii.strashko,
	Ivan Khoronzhuk, Murali Karicheri

Add a property to disable subpage write.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
---
 Documentation/devicetree/bindings/mtd/davinci-nand.txt | 2 ++
 drivers/mtd/nand/davinci_nand.c                        | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/davinci-nand.txt b/Documentation/devicetree/bindings/mtd/davinci-nand.txt
index cfb18ab..50af930 100644
--- a/Documentation/devicetree/bindings/mtd/davinci-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/davinci-nand.txt
@@ -53,6 +53,8 @@ Recommended properties :
 				identifier is saved in OOB area. If not present
 				false.
 
+- ti,davinci-nosubpage-write:	disable subpage write for the device
+
 Deprecated properties:
 
 - ti,davinci-ecc-mode:		operation mode of the NAND ecc mode. ECC mode
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index 4615d79..3ba058d 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -581,6 +581,9 @@ static struct davinci_nand_pdata
 		    of_property_read_bool(pdev->dev.of_node,
 			"ti,davinci-nand-use-bbt"))
 			pdata->bbt_options = NAND_BBT_USE_FLASH;
+		if (of_property_read_bool(pdev->dev.of_node,
+			"ti,davinci-no-subpage-write"))
+			pdata->options |= NAND_NO_SUBPAGE_WRITE;
 	}
 
 	return dev_get_platdata(&pdev->dev);
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: dts: keystone: disable subpage write for davinci nand device
  2014-03-19 22:15 [PATCH 0/2] Disable subpage write for k2hk-evm Ivan Khoronzhuk
  2014-03-19 22:15 ` [PATCH 1/2] mtd: davinci-nand: add dts property for NAND_NO_SUBPAGE_WRITE option Ivan Khoronzhuk
@ 2014-03-19 22:15 ` Ivan Khoronzhuk
  2014-03-20 13:34 ` [PATCH 0/2] Disable subpage write for k2hk-evm Ivan Khoronzhuk
  2 siblings, 0 replies; 4+ messages in thread
From: Ivan Khoronzhuk @ 2014-03-19 22:15 UTC (permalink / raw)
  To: santosh.shilimkar
  Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux,
	devicetree, linux-arm-kernel, linux-kernel, grygorii.strashko,
	Ivan Khoronzhuk, Murali Karicheri

Add the property davinci-no-subpage-write to disable sub page write in the
nand driver.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
---
 arch/arm/boot/dts/k2hk-evm.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/k2hk-evm.dts b/arch/arm/boot/dts/k2hk-evm.dts
index 1a1335b..624520f 100644
--- a/arch/arm/boot/dts/k2hk-evm.dts
+++ b/arch/arm/boot/dts/k2hk-evm.dts
@@ -118,6 +118,7 @@
 			nand-ecc-mode = "hw";
 			ti,davinci-ecc-bits = <4>;
 			nand-on-flash-bbt;
+			ti,davinci-no-subpage-write;
 
 			partition@0 {
 				label = "u-boot";
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Disable subpage write for k2hk-evm
  2014-03-19 22:15 [PATCH 0/2] Disable subpage write for k2hk-evm Ivan Khoronzhuk
  2014-03-19 22:15 ` [PATCH 1/2] mtd: davinci-nand: add dts property for NAND_NO_SUBPAGE_WRITE option Ivan Khoronzhuk
  2014-03-19 22:15 ` [PATCH 2/2] ARM: dts: keystone: disable subpage write for davinci nand device Ivan Khoronzhuk
@ 2014-03-20 13:34 ` Ivan Khoronzhuk
  2 siblings, 0 replies; 4+ messages in thread
From: Ivan Khoronzhuk @ 2014-03-20 13:34 UTC (permalink / raw)
  To: santosh.shilimkar
  Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux,
	devicetree, linux-arm-kernel, linux-kernel, grygorii.strashko

Please ignore this series

On 03/20/2014 12:15 AM, Ivan Khoronzhuk wrote:
> These patches disable subpage write for k2hk-evm.
>
> Based on linux-next
> tag: next-20140319
>
> Ivan Khoronzhuk (2):
>    mtd: davinci-nand: add dts property for NAND_NO_SUBPAGE_WRITE option
>    ARM: dts: keystone: disable subpage write for davinci nand device
>
>   Documentation/devicetree/bindings/mtd/davinci-nand.txt | 2 ++
>   arch/arm/boot/dts/k2hk-evm.dts                         | 1 +
>   drivers/mtd/nand/davinci_nand.c                        | 3 +++
>   3 files changed, 6 insertions(+)
>

-- 
Regards,
Ivan Khoronzhuk

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-20 13:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-19 22:15 [PATCH 0/2] Disable subpage write for k2hk-evm Ivan Khoronzhuk
2014-03-19 22:15 ` [PATCH 1/2] mtd: davinci-nand: add dts property for NAND_NO_SUBPAGE_WRITE option Ivan Khoronzhuk
2014-03-19 22:15 ` [PATCH 2/2] ARM: dts: keystone: disable subpage write for davinci nand device Ivan Khoronzhuk
2014-03-20 13:34 ` [PATCH 0/2] Disable subpage write for k2hk-evm Ivan Khoronzhuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).