aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-11-02 13:12:33 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-11-30 04:48:31 -0500
commitb1c6e6db5bb7acad82e1c64914c6a9404dae3ee1 (patch)
tree92fda540b31a8687dca448fd1e91dd1f78a08825 /include/linux/mtd/nand.h
parent6eb4feffb9d619a44fe434e777ef095a29cf4759 (diff)
mtd: nand: add option to quieten off the no device found messgae
Add NAND_SCAN_SILENT_NODEV to chip->options to the user-worrying messages 'No NAND device found!!!'. This message often worries users (was three exclamation marks really necessary?) and especially in systems such as the Simtec Osiris where there may be optional NAND devices which are not known until probe time. Revised version of the original NAND_PROBE_SPECULATIVE patch after comments by Artem Bityutskiy about adding a whole new call. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Simtec Linux Team <linux@simtec.co.uk> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/nand.h')
-rw-r--r--include/linux/mtd/nand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 2476078a032f..ccab9dfc5217 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -170,7 +170,6 @@ typedef enum {
170/* Chip does not allow subpage writes */ 170/* Chip does not allow subpage writes */
171#define NAND_NO_SUBPAGE_WRITE 0x00000200 171#define NAND_NO_SUBPAGE_WRITE 0x00000200
172 172
173
174/* Options valid for Samsung large page devices */ 173/* Options valid for Samsung large page devices */
175#define NAND_SAMSUNG_LP_OPTIONS \ 174#define NAND_SAMSUNG_LP_OPTIONS \
176 (NAND_NO_PADDING | NAND_CACHEPRG | NAND_COPYBACK) 175 (NAND_NO_PADDING | NAND_CACHEPRG | NAND_COPYBACK)
@@ -196,6 +195,9 @@ typedef enum {
196/* This option is defined if the board driver allocates its own buffers 195/* This option is defined if the board driver allocates its own buffers
197 (e.g. because it needs them DMA-coherent */ 196 (e.g. because it needs them DMA-coherent */
198#define NAND_OWN_BUFFERS 0x00040000 197#define NAND_OWN_BUFFERS 0x00040000
198/* Chip may not exist, so silence any errors in scan */
199#define NAND_SCAN_SILENT_NODEV 0x00080000
200
199/* Options set by nand scan */ 201/* Options set by nand scan */
200/* Nand scan has allocated controller struct */ 202/* Nand scan has allocated controller struct */
201#define NAND_CONTROLLER_ALLOC 0x80000000 203#define NAND_CONTROLLER_ALLOC 0x80000000