Noisily disable the legacy NAND subsystem.
PATCH 1/1 Noisily disable the legacy NAND subsystem.
Legacy NAND is marked for feature removal after April 2009 (i.e. this upcoming release). There are still several boards that reference it (though many do so only for disk-on-chip support which has been silently disabled for a while now). These boards will now fail to build with
The plan is to remove the code outright in the next release, along with any board code that refers to it (such as board/esd/common/auto_update.c).
---
Applied to u-boot-nand-flash.
common/cmd_doc.c | 4 ++++ drivers/mtd/nand_legacy/nand_legacy.c | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-)
common/cmd_doc.c +4 -0
@@ -14,6 +14,10 @@#include <linux/mtd/nftl.h> #include <linux/mtd/doc2000.h> +#error This code is broken and will be removed outright in the next release. +#error If you need diskonchip support, please update +#error drivers/mtd/nand/diskonchip.c to work with u-boot. +/* * ! BROKEN ! *
drivers/mtd/nand_legacy/nand_legacy.c +3 -0
@@ -18,6 +18,9 @@#include <linux/mtd/nand_ids.h> #include <jffs2/jffs2.h> +#error Legacy NAND is deprecated. Please convert to the current NAND interface. +#error This code will be removed outright in the next release. +#ifdef CONFIG_OMAP1510 void archflashwp (void *archdata,int wp);#endif
Signature · 1 line
1.5.6.rc1.6.gc53ad
PATCH 1/1 Noisily disable the legacy NAND subsystem.
Quoted 5 lines · Scott Wood
Legacy NAND is marked for feature removal after April 2009 (i.e. this upcoming release). There are still several boards that reference it (though many do so only for disk-on-chip support which has been silently
disabled for a while now). These boards will now fail to build with
Drum roll....? You're missing the rest of your sentence, or you have too much sentence, or something.
Quoted 25 lines
The plan is to remove the code outright in the next release, along with
any board code that refers to it (such as board/esd/common/auto_update.c).Signed-off-by Scott Wood <[email protected]>---
Applied to u-boot-nand-flash.common/cmd_doc.c | 4 ++++ drivers/mtd/nand_legacy/nand_legacy.c | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-)common/cmd_doc.c +1
-0@@ -14,6 +14,10 @@#include <linux/mtd/nftl.h> #include <linux/mtd/doc2000.h> +#error This code is broken and will be removed outright in the nextrelease.
common/cmd_doc.c line 19
Quoted 2 lines
common/cmd_doc.c +2
-0+#error If you need diskonchip support, please update +#error drivers/mtd/nand/diskonchip.c to work with u-boot.
"to work with u-boot"? As opposed to what, exactly? How about "please update blah to be functional"
-B
Quoted 27 lines
+
/*
* ! BROKEN !
*drivers/mtd/ renamed from drivers/mtd/nand_legacy/nand_legacy.c +0
-0
nand_legacy/nand_legacy.c
index 441780a..d9ae9c7 100644drivers/mtd/nand_legacy/nand_legacy.c +1
-0@@ -18,6 +18,9 @@#include <linux/mtd/nand_ids.h> #include <jffs2/jffs2.h> +#error Legacy NAND is deprecated. Please convert to the currentNAND interface.
drivers/mtd/nand_legacy/nand_legacy.c +2
-0+#error This code will be removed outright in the next release. +#ifdef
CONFIG_OMAP1510
voidarchflashwp(void *archdata, int wp);
#endifSignature · 5 lines
1.5.6.rc1.6.gc53ad _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
PATCH 1/1 Noisily disable the legacy NAND subsystem.
Quoted 10 lines · Becky Bruce
Quoted 4 lines · Scott Wood
Legacy NAND is marked for feature removal after April 2009 (i.e. this upcoming release). There are still several boards that reference it (though many do so only for disk-on-chip support which has been silently disabled for a while now). These boards will now fail to build with
Drum roll....? You're missing the rest of your sentence, or you have too much sentence, or something.
D'oh. The next line started with "#error", so git treated it as a comment.
Commit amended to say "These boards will now fail to build with #error, though the code is still there if the user removes #error."
Quoted 6 lines
common/cmd_doc.c line 19
Quoted 4 lines
+#error This code is broken and will be removed outright in the next release.
common/cmd_doc.c +2
-0+#error If you need diskonchip support, please update +#error drivers/mtd/nand/diskonchip.c to work with u-boot."to work with u-boot"? As opposed to what, exactly?
Linux, where the code was taken from as part of the NAND subsystem importation.
Quoted 1 line
How about "please update blah to be functional"
"be functional" == "work". I was just clarifying the nature of the fixing that needed to be done.
-Scott
PATCH 1/1 Noisily disable the legacy NAND subsystem.
Quoted 8 lines · Scott Wood
Quoted 7 lines · Becky Bruce
Quoted 6 lines · Scott Wood
Legacy NAND is marked for feature removal after April 2009 (i.e. this
upcoming release). There are still several boards that reference it (though many do so only for disk-on-chip support which has been silently
disabled for a while now). These boards will now fail to build with
Quoted 8 lines
Quoted 2 lines
Drum roll....? You're missing the rest of your sentence, or you have too much sentence, or something.
D'oh. The next line started with "#error", so git treated it as a comment.
Commit amended to say "These boards will now fail to build with #error, though the code is still there if the user removes #error."
Thanks ;)
Quoted 8 lines
Quoted 7 lines
common/cmd_doc.c line 19
Quoted 6 lines
+#error This code is broken and will be removed outright in the next release.
common/cmd_doc.c +2
-0+#error If you need diskonchip support, please update +#error drivers/mtd/nand/diskonchip.c to work with u-boot."to work with u-boot"? As opposed to what, exactly?
Quoted 7 lines
Linux, where the code was taken from as part of the NAND subsystem importation.
Quoted 1 line
How about "please update blah to be functional"
"be functional" == "work". I was just clarifying the nature of the fixing that needed to be done.
it wasn't the "work" I had a problem with, it was the "with u-boot" part, and getting rid of the "with u-boot" made "work" sound silly :)
But if you're actually talking about u-boot vs linux, the comment is fine as is.
Thanks,
B
PATCH 1/1 Noisily disable the legacy NAND subsystem.
In reply to Scott WoodDear Scott Wood,
Quoted 5 lines · In message <[email protected]> you wrote:
Legacy NAND is marked for feature removal after April 2009 (i.e. this upcoming release). There are still several boards that reference it (though many do so only for disk-on-chip support which has been silently disabled for a while now). These boards will now fail to build with
... fail to build with ... with what?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A wise person makes his own decisions, a weak one obeys public opinion. -- Chinese proverb