All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] spl: Make UBI fastmap support Kconfig selectable
Date: Mon, 26 Jun 2017 07:09:28 +0200	[thread overview]
Message-ID: <59509708.90501@denx.de> (raw)
In-Reply-To: <20170625082611.ewzeu7hcnehlmejw@lenoch>

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;
>

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

  reply	other threads:[~2017-06-26  5:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-25  8:26 [U-Boot] [PATCH] spl: Make UBI fastmap support Kconfig selectable Ladislav Michl
2017-06-26  5:09 ` Heiko Schocher [this message]
2017-07-07 11:41 ` [U-Boot] " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59509708.90501@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.