All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd/nand:Update mtd.name assignment type to u64 for IFC, eLBC
@ 2013-12-28  6:47 Prabhakar Kushwaha
  2014-01-11 23:19 ` Brian Norris
  0 siblings, 1 reply; 2+ messages in thread
From: Prabhakar Kushwaha @ 2013-12-28  6:47 UTC (permalink / raw
  To: linux-mtd; +Cc: scottwood, Prabhakar Kushwaha, dedekind1

mtd.name is assigned to IFC NAND physical address. Assignment type is u32.
It is not providing correct physical address of IFC NAND.

Update assignment type to u64.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
---
 drivers/mtd/nand/fsl_elbc_nand.c |    2 +-
 drivers/mtd/nand/fsl_ifc_nand.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c
index c966fc7..defd72e 100644
--- a/drivers/mtd/nand/fsl_elbc_nand.c
+++ b/drivers/mtd/nand/fsl_elbc_nand.c
@@ -875,7 +875,7 @@ static int fsl_elbc_nand_probe(struct platform_device *pdev)
 		goto err;
 	}
 
-	priv->mtd.name = kasprintf(GFP_KERNEL, "%x.flash", (unsigned)res.start);
+	priv->mtd.name = kasprintf(GFP_KERNEL, "%llx.flash", (u64)res.start);
 	if (!priv->mtd.name) {
 		ret = -ENOMEM;
 		goto err;
diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c
index 4335577..f56e574 100644
--- a/drivers/mtd/nand/fsl_ifc_nand.c
+++ b/drivers/mtd/nand/fsl_ifc_nand.c
@@ -1101,7 +1101,7 @@ static int fsl_ifc_nand_probe(struct platform_device *dev)
 		    IFC_NAND_EVTER_INTR_FTOERIR_EN |
 		    IFC_NAND_EVTER_INTR_WPERIR_EN,
 		    &ifc->ifc_nand.nand_evter_intr_en);
-	priv->mtd.name = kasprintf(GFP_KERNEL, "%x.flash", (unsigned)res.start);
+	priv->mtd.name = kasprintf(GFP_KERNEL, "%llx.flash", (u64)res.start);
 	if (!priv->mtd.name) {
 		ret = -ENOMEM;
 		goto err;
-- 
1.7.9.5

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

* Re: [PATCH] mtd/nand:Update mtd.name assignment type to u64 for IFC, eLBC
  2013-12-28  6:47 [PATCH] mtd/nand:Update mtd.name assignment type to u64 for IFC, eLBC Prabhakar Kushwaha
@ 2014-01-11 23:19 ` Brian Norris
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2014-01-11 23:19 UTC (permalink / raw
  To: Prabhakar Kushwaha; +Cc: scottwood, linux-mtd, dedekind1

On Sat, Dec 28, 2013 at 12:17:35PM +0530, Prabhakar Kushwaha wrote:
> mtd.name is assigned to IFC NAND physical address. Assignment type is u32.
> It is not providing correct physical address of IFC NAND.
> 
> Update assignment type to u64.
> 
> Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>

Pushed to l2-mtd.git. Thanks!

Brian

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

end of thread, other threads:[~2014-01-11 23:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-28  6:47 [PATCH] mtd/nand:Update mtd.name assignment type to u64 for IFC, eLBC Prabhakar Kushwaha
2014-01-11 23:19 ` Brian Norris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.