Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1323740 > unrolled thread

[PATCH v2 12/17] drivers:mtd:ubi:add disable bakvol while ubi detach

Started byBean Huo <jackyard88@gmail.com>
First post2016-02-02 03:40 +0100
Last post2016-02-02 03:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 12/17] drivers:mtd:ubi:add disable bakvol while ubi detach Bean Huo <jackyard88@gmail.com> - 2016-02-02 03:40 +0100

#1323740 — [PATCH v2 12/17] drivers:mtd:ubi:add disable bakvol while ubi detach

FromBean Huo <jackyard88@gmail.com>
Date2016-02-02 03:40 +0100
Subject[PATCH v2 12/17] drivers:mtd:ubi:add disable bakvol while ubi detach
Message-ID<qXz2Q-3Wf-61@gated-at.bofh.it>
From: Bean Huo <beanhuo@micron.com>

When ubi device is detached, bakvol should be disable and free pre-allocation
memory.

Signed-off-by: BeanHuo <beanhuo@micron.com>
---
 drivers/mtd/ubi/build.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 22fd19c..4f7a466 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -1118,6 +1118,8 @@ int ubi_detach_mtd_dev(int ubi_num, int anyway)
 	 */
 	get_device(&ubi->dev);
 
+	clear_bakvol(ubi);
+
 	ubi_debugfs_exit_dev(ubi);
 	uif_close(ubi);
 
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web