All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] spl: Make UBI fastmap support Kconfig selectable
@ 2017-06-25  8:26 Ladislav Michl
  2017-06-26  5:09 ` Heiko Schocher
  2017-07-07 11:41 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Ladislav Michl @ 2017-06-25  8:26 UTC (permalink / raw)
  To: u-boot

Fastmap was always enabled in ubispl, make it selectable by
CONFIG_MTD_UBI_FASTMAP.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 common/spl/spl_ubi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/spl/spl_ubi.c b/common/spl/spl_ubi.c
index 24633f4766..83089335a7 100644
--- a/common/spl/spl_ubi.c
+++ b/common/spl/spl_ubi.c
@@ -38,7 +38,7 @@ int spl_ubi_load_image(struct spl_image_info *spl_image,
 		goto out;
 	}
 	info.ubi = (struct ubi_scan_info *)CONFIG_SPL_UBI_INFO_ADDR;
-	info.fastmap = 1;
+	info.fastmap = IS_ENABLED(CONFIG_MTD_UBI_FASTMAP);
 
 	info.peb_offset = CONFIG_SPL_UBI_PEB_OFFSET;
 	info.vid_offset = CONFIG_SPL_UBI_VID_OFFSET;
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-07 11:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-25  8:26 [U-Boot] [PATCH] spl: Make UBI fastmap support Kconfig selectable Ladislav Michl
2017-06-26  5:09 ` Heiko Schocher
2017-07-07 11:41 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.