From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3B3D8C636CC for ; Tue, 31 Jan 2023 16:56:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2331085B47; Tue, 31 Jan 2023 17:56:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="f5OtZRmq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 90B2A85B13; Tue, 31 Jan 2023 17:56:26 +0100 (CET) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2D75785B5E for ; Tue, 31 Jan 2023 17:56:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mkorpershoek@baylibre.com Received: by mail-wr1-x42c.google.com with SMTP id m7so14827317wru.8 for ; Tue, 31 Jan 2023 08:56:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=Xmp50yXemrY3iZ/VQ0GMtpL1tx4ED2TjFA2FkhdPXHo=; b=f5OtZRmq8Hwhb8hjYdO+6+v0rzwsi6bmquci4Zhd6RpQ44l4bn3RkQvpxWQvBhXu0o cOye0LdFmnPpFBPxUWIij2qdm93Y2F5KXVYHb0pt2G3uOHZOeRtunvAwJjLSeEaYY6vz GocPHX2tGuL3/qUgcm5RQtlc32VM+IRVidp3idVYJg/JDCliVjAp8y83c+YX7cbaEInB u6qOtFHcAnoWQNOeslqiwLara/yryocTTuZF+50RfhcrDhcZYSrYj4/zXt1jMsQ/i3gf UR51nWkql2qLqUFb4ddhqXrFwGypZDFcINegEF3F8eUdwlk9V9zPCBgac4xxJ2uCJrS/ jrpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Xmp50yXemrY3iZ/VQ0GMtpL1tx4ED2TjFA2FkhdPXHo=; b=Wqx4bghJYNBRyQj1W096DRnqEwBRS3A5tFjDrtRciXr2/34qzgqhndImHSR9zAwwi3 Es+gWrKObArNL5L2bSWgXUS9XEuTWZ7jUvOD+3bNPgT35LMtnbhAlTeEwGOGB0OuMltF CuCV3AIKZPett15+7wDi1QnvIldEXyaQB5M76TO8VbSrbSSPb+nLX447DngZZUlGIk6m 1yEQT6qjpMj6N5TnEckxXpSE95KO72gxH/XoJixVUS3BlZLA3RcT+wj7S7QHWVxgowiq NoD87p+VAQWcCoF4bAIbU3xoeZJsbTsDsfdr/m5iDnQWVOVrcE1VxTR47+CcIadpH6/A rG0Q== X-Gm-Message-State: AO0yUKVwyRdxjc3mzJUwFvAU2qQ1Q4QH4RmG3TkFg8Um6C8lbEJNZF37 VwvrXkijuCHxy3iKhdDB3akR9Q== X-Google-Smtp-Source: AK7set/sneT/7GtQXLlU1SUv3Ba3C1+niHycTTKpCFa/ZSix+a36ZaKvDMLlspl+DjeE7wIejtHaXA== X-Received: by 2002:adf:e306:0:b0:2bc:1252:c907 with SMTP id b6-20020adfe306000000b002bc1252c907mr127508wrj.49.1675184183696; Tue, 31 Jan 2023 08:56:23 -0800 (PST) Received: from localhost ([82.66.159.240]) by smtp.gmail.com with ESMTPSA id c7-20020adffb47000000b002ba2646fd30sm17122028wrs.36.2023.01.31.08.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 08:56:23 -0800 (PST) From: Mattijs Korpershoek To: Simon Glass , U-Boot Mailing List Cc: Tom Rini , Simon Glass , Joe Hershberger , Patrick Delaunay , Ramon Fried , Sean Anderson Subject: Re: [PATCH 086/171] Correct SPL uses of FASTBOOT_FLASH In-Reply-To: <20230130144324.206208-87-sjg@chromium.org> References: <20230130144324.206208-1-sjg@chromium.org> <20230130144324.206208-87-sjg@chromium.org> Date: Tue, 31 Jan 2023 17:56:10 +0100 Message-ID: <87k012k5hx.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Mon, Jan 30, 2023 at 07:41, Simon Glass wrote: > This converts 3 usages of this option to the non-SPL form, since there is > no SPL_FASTBOOT_FLASH defined in Kconfig > > Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek > --- > > drivers/fastboot/fb_getvar.c | 4 ++-- > net/fastboot.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c > index 2fbd285db38..bcef8f866f3 100644 > --- a/drivers/fastboot/fb_getvar.c > +++ b/drivers/fastboot/fb_getvar.c > @@ -57,7 +57,7 @@ static const struct { > }, { > .variable = "current-slot", > .dispatch = getvar_current_slot > -#if CONFIG_IS_ENABLED(FASTBOOT_FLASH) > +#if IS_ENABLED(CONFIG_FASTBOOT_FLASH) > }, { > .variable = "has-slot", > .dispatch = getvar_has_slot > @@ -67,7 +67,7 @@ static const struct { > .variable = "partition-type", > .dispatch = getvar_partition_type > #endif > -#if CONFIG_IS_ENABLED(FASTBOOT_FLASH) > +#if IS_ENABLED(CONFIG_FASTBOOT_FLASH) > }, { > .variable = "partition-size", > .dispatch = getvar_partition_size > diff --git a/net/fastboot.c b/net/fastboot.c > index 96bdf5486fa..e9569d88d2a 100644 > --- a/net/fastboot.c > +++ b/net/fastboot.c > @@ -307,7 +307,7 @@ void fastboot_start_server(void) > > fastboot_our_port = CONFIG_UDP_FUNCTION_FASTBOOT_PORT; > > - if (CONFIG_IS_ENABLED(FASTBOOT_FLASH)) > + if (IS_ENABLED(CONFIG_FASTBOOT_FLASH)) > fastboot_set_progress_callback(fastboot_timed_send_info); > > net_set_udp_handler(fastboot_handler); > -- > 2.39.1.456.gfc5497dd1b-goog