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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 903E0C433F5 for ; Tue, 28 Sep 2021 18:46:10 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D540C61246 for ; Tue, 28 Sep 2021 18:46:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D540C61246 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 15278831D8; Tue, 28 Sep 2021 20:46:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="cghghXXW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F1A048022E; Tue, 28 Sep 2021 20:45:29 +0200 (CEST) Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) (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 3A53E80C58 for ; Tue, 28 Sep 2021 20:45:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82b.google.com with SMTP id e16so20739013qte.13 for ; Tue, 28 Sep 2021 11:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9sfA5aEaLqPEDqduiDaprCWpUXBQt9/SYQAwo0r8lRQ=; b=cghghXXWypn+tS7mnrYhu9cS3uFF8D85fxk0HTCuy4nvpzcmAqAoNZS3GfnbCnK72I X2CXKS0C8+lfJfab/izdAZECNEU61Rcpv/SplrPqPJO737W7O+cW1km4LK7dRUYcD1zz PANs7Q5KVXBx+oQ/QYKTszzq4t/JqrI1oOZT8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9sfA5aEaLqPEDqduiDaprCWpUXBQt9/SYQAwo0r8lRQ=; b=sFV2ACnYswuyqafVwh55kzeARNqjcTM7t+ZLWMxJwlrvzrnY72lWeSdN9MjmJ6J8+D CpQRPreGI1VCI9AXDGv+CRqJCDU4NnAesppSjoSD6agLZjiHRUZfdKdVFQFskcJ10/WG qN4+yubIyB1lkjg8BNF3D0YVHJIJ8WGE3wcv6nQxKyZ2/Ng+O18oGqun2noMAKe5TkKU im/EBkJLxyq5GfXbePhk+TpnBqse9lspJYoeU2/O/6wzCgWe9JWt+/NT/puUzeKR3S7s KAXAGjDJyPs0RSzgUEhTgafyszJmm//yUy24I18EDwMYHyw6vNiX3LznqiSK2WX5obrX TJBA== X-Gm-Message-State: AOAM5313cAbI+CUdaWqEomhKCxMveIKuKvr/6uGnVTrmueDw3ZvPPp/i MysPWUcHhp189YGQE0tL/8pHnQ== X-Google-Smtp-Source: ABdhPJxfJiqVRbqTtI4ikhl2YTpfPzQwAUAhymSzmZtBpoy3VGnPK3IHhqp44RXcXY8zzsjcUD/EzA== X-Received: by 2002:ac8:1090:: with SMTP id a16mr7345131qtj.297.1632854718062; Tue, 28 Sep 2021 11:45:18 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-c022-6242-d139-1392.res6.spectrum.com. [2603:6081:7b01:cbda:c022:6242:d139:1392]) by smtp.gmail.com with ESMTPSA id s185sm8421959qke.93.2021.09.28.11.45.16 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Sep 2021 11:45:17 -0700 (PDT) Date: Tue, 28 Sep 2021 14:45:15 -0400 From: Tom Rini To: Patrick Delaunay Cc: u-boot@lists.denx.de, Pali =?iso-8859-1?Q?Roh=E1r?= , Marek Vasut , Jagan Teki , Christophe KERELLO , Miquel Raynal , Priyanka Jain , Patrice Chotard , Heiko Schocher , U-Boot STM32 Subject: Re: [PATCH v4 1/2] mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported Message-ID: <20210928184515.GW31748@bill-the-cat> References: <20210922162909.1857566-1-patrick.delaunay@foss.st.com> <20210922182841.v4.1.I81b4f1edfe925b001299e3b7ba0cf602d9268d59@changeid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MhDS85o8hQkNlKhq" Content-Disposition: inline In-Reply-To: <20210922182841.v4.1.I81b4f1edfe925b001299e3b7ba0cf602d9268d59@changeid> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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 --MhDS85o8hQkNlKhq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 22, 2021 at 06:29:07PM +0200, Patrick Delaunay wrote: > When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated, > CONFIG_SYS_MAX_FLASH_BANKS is replaced by cfi_flash_num_flash_banks, > but this variable is defined in drivers/mtd/cfi_flash.c, which is > compiled only when CONFIG_FLASH_CFI_DRIVER is activated, in U-Boot > or in SPL when CONFIG_SPL_MTD_SUPPORT is activated. >=20 > This patch deactivates this feature CONFIG_SYS_MAX_FLASH_BANKS_DETECT > when flash cfi driver is not activated to avoid compilation issue in > the next patch, when CONFIG_SYS_MAX_FLASH_BANKS is used in spi_nor_scan(). >=20 > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! --=20 Tom --MhDS85o8hQkNlKhq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFTYrsACgkQFHw5/5Y0 tyxs5Qv+Ps2vswliBe5on4gI/RecCQ4MEiMrj+bbpO0BiSSqyQTgPXHV2rkPnXMy bErvuq8QHSqbOEBujD54/il93uG1Y0S6tEOcevDaFeADvp8hl4SR1aP/sdB/3/EA vCSd770hcttO5kT0FAHIaXcd+X+hR5QD3txcuaXzZel1ff3pWTHgY+s8jNc9XMpm AsifE5ZhtApR9pdY4F+xB4n0zoj5JJzftllYQ9haa3ULJXzSKumQdFUGypSvUA1X wrlXeK7ih+CPG5wJNLkwp+JVmrHWz7hLWmoRt8pcDr9QupIAqpFyOKVxI3Nl7sXl /KxL6RgbIMpctMJajH4EBd40O7CZ+TrurcH2ZqL1+V85ughCICh6Q76z4045zjbK pmOz7p9m+Rv2mhBHluu2U+pKzPllHQgF08fFg5eFQmiHO5g/EiDkUzxzE0FXYTUk wBadiO/8G//KkSTNf9giuqCaVajSYWZtwF5BCU9iA3nfXMBdgBpLQ+keG9Vo3/Wd f3MoBCw1 =2qDz -----END PGP SIGNATURE----- --MhDS85o8hQkNlKhq--