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 6C8D6C433F5 for ; Sat, 15 Jan 2022 14:03:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 296338142D; Sat, 15 Jan 2022 15:02:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="jItZebne"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 26B7D805F9; Sat, 15 Jan 2022 15:02:57 +0100 (CET) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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 366C48142D for ; Sat, 15 Jan 2022 15:02:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=festevam@gmail.com Received: by mail-ed1-x52e.google.com with SMTP id u25so45211243edf.1 for ; Sat, 15 Jan 2022 06:02:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lGaJYPbiOho8rGnXejiyUwkqyFeoO19IOTHUNLvkqaI=; b=jItZebner2IPP4gRrFa2jMhJKlhfFwe04BizpFsR/HjyCvfP0tQjohgbg9Yva7HxRp 125sM1qL8VWzdB3rtngfHTlR4M2symJzJqEaGl+hzvwBLnPPWqnn9vbtKA3jrwRMwDeL 95zNKCdEywfcZ6cb8YnciP5R7g0Va1GyCBRnnqeEeXiubq0uf1xpiGQLNsU9wqgfgeEx GCWHLq+YTsgSoKmOyPLbxC/zOewjjBL0AZP8H7dsQdsJJZ5Z3fwiWN8ubW+pzJzQ6vje blkNMAq3Ua6nXtQj9fV6v8ee/Eb8h1pbAcwfV+bM8+MMbI4husimRVVSK+Heatz5A5nU Gl6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lGaJYPbiOho8rGnXejiyUwkqyFeoO19IOTHUNLvkqaI=; b=Qj/6yms1gC1Esrw8BtvT6AvEY5RrQ+YlFzBnDetWP0UjS1vvIsz+DTvtM/LQXI6WgK a21rp6NY30gZGGQOLvJj+BPxK1euiiEiBGCgrpcDy1294bjAvmvORpc4GKDo4vJERo0q 07tjqLVJ0fevHkRvyYZXYLRBG34Hoew2mrnmkvaEeb31L/gtqGICFSAMkGrg3nUVgSub /O6c5OnlPh0K7NOSG7QkoJQ4yX8Z8DLwnQS+ojVO2YfTYZi5uR2MheSWUffm+z09ZXzq GJU1Ow2IXILW6o8qGdcm7rysG3U3TDQk/fIidfeRGAajgv3ff1Q7j71vOzKrxgtBqIAG 4yKQ== X-Gm-Message-State: AOAM533PFQGjVQ9/xI9oD2Wf6+QpVUXAoQ9axpbKVr3O6GgZF91PERKG ADCJ3qLpP6oFEHNtRy6Qx4TpNa//SNswUgo/QHgmSRgOdKM= X-Google-Smtp-Source: ABdhPJwO0IO/aigb31NElPU2ELVGKUoKSlHs4rIjDz4T7w6A9GOOBVEe6yeIRwKHHFeZ3qZBckfw2hgiGiFgciYDmlM= X-Received: by 2002:a05:6402:190a:: with SMTP id e10mr13332321edz.135.1642255372754; Sat, 15 Jan 2022 06:02:52 -0800 (PST) MIME-Version: 1.0 References: <20211020191626.3648540-1-ricardo@foundries.io> In-Reply-To: <20211020191626.3648540-1-ricardo@foundries.io> From: Fabio Estevam Date: Sat, 15 Jan 2022 11:02:42 -0300 Message-ID: Subject: Re: [PATCH] ARM: imx8m: support env in fat and ext4 To: Ricardo Salveti Cc: U-Boot-Denx , Stefano Babic , dl-uboot-imx , Peng Fan , Ye Li , Marek Vasut , Simon Glass , Schrempf Frieder , Oleksandr Suvorov , Igor Opaniuk Content-Type: text/plain; charset="UTF-8" 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.2 at phobos.denx.de X-Virus-Status: Clean On Wed, Oct 20, 2021 at 4:16 PM Ricardo Salveti wrote: > > Change boot device logic to also allow environment stored in fat and in > ext4 when booting from SD or from eMMC. > > As the boot device check for SD and for eMMC was depending on > ENV_IS_IN_MMC being defined, change the ifdef blocks at env_get_location > to use IS_ENABLED instead for all modes, returning NOWHERE when no valid > mode is found. > > Signed-off-by: Ricardo Salveti Reviewed-by: Fabio Estevam