summaryrefslogtreecommitdiff
path: root/drivers/mtd/ubi/debug.h
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2014-10-08 13:14:09 (GMT)
committerRichard Weinberger <richard@nod.at>2015-03-26 21:46:06 (GMT)
commit479c2c0cac0c1d23655df15cf039b4f8e3623d23 (patch)
treef184d88172064640bdfa9418df8b191b964507b3 /drivers/mtd/ubi/debug.h
parent560d86a1a210000b33859cd66e051fcb516a3559 (diff)
downloadlinux-479c2c0cac0c1d23655df15cf039b4f8e3623d23.tar.xz
UBI: Fastmap: Add new module parameter fm_debug
If fm_debug is set fastmap debugging is enabled by default. This is useful if one wants to debug fastmap on an UBI device with serves the rootfs. The the UBI attach mechanism runs long before debugfs can be mounted and chk_fastmap set. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/debug.h')
-rw-r--r--drivers/mtd/ubi/debug.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h
index e99ef37..c6ea443 100644
--- a/drivers/mtd/ubi/debug.h
+++ b/drivers/mtd/ubi/debug.h
@@ -132,4 +132,9 @@ static inline int ubi_dbg_chk_fastmap(const struct ubi_device *ubi)
{
return ubi->dbg.chk_fastmap;
}
+
+static inline void ubi_enable_dbg_chk_fastmap(struct ubi_device *ubi)
+{
+ ubi->dbg.chk_fastmap = 1;
+}
#endif /* !__UBI_DEBUG_H__ */