* [PATCH RESEND][MTD]MLC device check in OneNAND driver
@ 2010-09-24 11:40 Rohit Hassan Sathyanarayan
2010-09-24 11:52 ` Artem Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: Rohit Hassan Sathyanarayan @ 2010-09-24 11:40 UTC (permalink / raw)
To: dedekind1, linux-mtd; +Cc: v.dalal, gupta.raghav
Signed-off-by: Rohit HS <rohit.hs@samsung.com>
Signed-off-by: Raghav Gupta <gupta.raghav@samsung.com>
---
drivers/mtd/onenand/onenand_base.c | 2 +-
include/mtd/mtd-abi.h | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index a2bb520..33e0dbb 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -4027,7 +4027,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
mtd->ecclayout = this->ecclayout;
/* Fill in remaining MTD driver data */
- mtd->type = MTD_NANDFLASH;
+ mtd->type = ONENAND_IS_MLC(this) ? MTD_MLCNANDFLASH : MTD_NANDFLASH;
mtd->flags = MTD_CAP_NANDFLASH;
mtd->erase = onenand_erase;
mtd->point = NULL;
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index 4debb45..8d8161c 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -52,6 +52,7 @@ struct mtd_oob_buf64 {
#define MTD_NANDFLASH 4
#define MTD_DATAFLASH 6
#define MTD_UBIVOLUME 7
+#define MTD_MLCNANDFLASH 8
#define MTD_WRITEABLE 0x400 /* Device is writeable */
#define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */
--
1.6.6.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND][MTD]MLC device check in OneNAND driver
2010-09-24 11:40 [PATCH RESEND][MTD]MLC device check in OneNAND driver Rohit Hassan Sathyanarayan
@ 2010-09-24 11:52 ` Artem Bityutskiy
2010-10-07 4:32 ` Rohit Hassan Sathyanarayan
0 siblings, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2010-09-24 11:52 UTC (permalink / raw)
To: Rohit Hassan Sathyanarayan; +Cc: v.dalal, gupta.raghav, linux-mtd
On Fri, 2010-09-24 at 17:10 +0530, Rohit Hassan Sathyanarayan wrote:
> Signed-off-by: Rohit HS <rohit.hs@samsung.com>
> Signed-off-by: Raghav Gupta <gupta.raghav@samsung.com>
Almost perfect. However:
1. All mtd patches should have "mtd:" prefix.
2. Add some description about what you do and why into the commit
message.
3. I think combining is not good, better do it old way - first patch
introduces the flag, second uses it in OneNAND
Sorry for being picky, but I really want to show you how to send patches
properly once and later get good series from you.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH RESEND][MTD]MLC device check in OneNAND driver
2010-09-24 11:52 ` Artem Bityutskiy
@ 2010-10-07 4:32 ` Rohit Hassan Sathyanarayan
2010-10-07 19:18 ` Artem Bityutskiy
0 siblings, 1 reply; 4+ messages in thread
From: Rohit Hassan Sathyanarayan @ 2010-10-07 4:32 UTC (permalink / raw)
To: dedekind1; +Cc: v.dalal, gupta.raghav, linux-mtd
Hi Artem,
> -----Original Message-----
> From: Artem Bityutskiy [mailto:dedekind1@gmail.com]
> Sent: Friday, September 24, 2010 5:22 PM
> To: Rohit Hassan Sathyanarayan
> Cc: linux-mtd@lists.infradead.org; gupta.raghav@samsung.com; v.dalal@samsung.com
> Subject: Re: [PATCH RESEND][MTD]MLC device check in OneNAND driver
>
> On Fri, 2010-09-24 at 17:10 +0530, Rohit Hassan Sathyanarayan wrote:
> > Signed-off-by: Rohit HS <rohit.hs@samsung.com>
> > Signed-off-by: Raghav Gupta <gupta.raghav@samsung.com>
>
> Almost perfect. However:
>
> 1. All mtd patches should have "mtd:" prefix.
> 2. Add some description about what you do and why into the commit
> message.
> 3. I think combining is not good, better do it old way - first patch
> introduces the flag, second uses it in OneNAND
>
We made changes as per your comments and have posted two patches,
Links of two patches,
http://lists.infradead.org/pipermail/linux-mtd/2010-September/032333.html
http://lists.infradead.org/pipermail/linux-mtd/2010-September/032334.html
> Sorry for being picky, but I really want to show you how to send patches
> properly once and later get good series from you.
>
> --
> Best Regards,
> Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH RESEND][MTD]MLC device check in OneNAND driver
2010-10-07 4:32 ` Rohit Hassan Sathyanarayan
@ 2010-10-07 19:18 ` Artem Bityutskiy
0 siblings, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2010-10-07 19:18 UTC (permalink / raw)
To: Rohit Hassan Sathyanarayan; +Cc: v.dalal, gupta.raghav, linux-mtd
On Thu, 2010-10-07 at 10:02 +0530, Rohit Hassan Sathyanarayan wrote:
> We made changes as per your comments and have posted two patches,
> Links of two patches,
> http://lists.infradead.org/pipermail/linux-mtd/2010-September/032333.html
> http://lists.infradead.org/pipermail/linux-mtd/2010-September/032334.html
Yes, I have them in my l2-mtd-2.6.git tree.
--
Best Regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-07 19:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-24 11:40 [PATCH RESEND][MTD]MLC device check in OneNAND driver Rohit Hassan Sathyanarayan
2010-09-24 11:52 ` Artem Bityutskiy
2010-10-07 4:32 ` Rohit Hassan Sathyanarayan
2010-10-07 19:18 ` Artem Bityutskiy
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).