Message ID | 20170625082611.ewzeu7hcnehlmejw@lenoch |
---|---|
State | Accepted |
Commit | ffc282e1995f7f8b84019ebeb1e29cfa733ba25d |
Delegated to: | Tom Rini |
Headers | show |
Hello Ladislav, Am 25.06.2017 um 10:26 schrieb Ladislav Michl: > 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); Thanks! Acked-by: Heiko Schocher <hs@denx.de> (I Ack here the patch, as I think this patch belongs to the following board patches, so this patch should go in with the board patches) bye, Heiko > > info.peb_offset = CONFIG_SPL_UBI_PEB_OFFSET; > info.vid_offset = CONFIG_SPL_UBI_VID_OFFSET; >
On Sun, Jun 25, 2017 at 10:26:11AM +0200, Ladislav Michl wrote: > Fastmap was always enabled in ubispl, make it selectable by > CONFIG_MTD_UBI_FASTMAP. > > Signed-off-by: Ladislav Michl <ladis@linux-mips.org> > Acked-by: Heiko Schocher <hs@denx.de> Applied to u-boot/master, thanks!
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;
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(-)