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 09C1CC6FA82 for ; Sun, 4 Sep 2022 15:23:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4C3848418B; Sun, 4 Sep 2022 17:23:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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="KyJLzMwf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B94E884001; Sun, 4 Sep 2022 17:23:52 +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 133AA8418B for ; Sun, 4 Sep 2022 17:23:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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 h21so4764077qta.3 for ; Sun, 04 Sep 2022 08:23:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=dKeUOL1eD8H61/v81VXi8GOySn+LUpbjlpAjn1PM72k=; b=KyJLzMwf8bx1O3dhmMvEduWUcZ7No6AhiSevdKPyzRinqA2MznWwZzEhP2pYUx4QqC rdYnSSQgIcbXxgcq5Y65ccufn/ncPMeaI+ZpiDuH50ClE5uDTXnPpJd85KZIloYvXy96 Ns4NGkxzzhvIqH+czMXrnJEyxaJX7MBop+xr8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=dKeUOL1eD8H61/v81VXi8GOySn+LUpbjlpAjn1PM72k=; b=6S969sq+XT8A/cDE76NypEvd6ekw5BlY2J8NEGVOhx7q7yXvwZKcI30o36fAnyOv8q z1npIHRst4OVela3wP0wTLyWsXPJMMMdFwdxjiBNI9UDUVgU6S81BFvu2uuSh7BUeYXR mgR/0uggeTE7fFBi0eObCa+8BbwU7qJJNkP5PAX3CQw2qfDHtX3K1GifXLVBcLqgfiIz 21drO1Qg5o4KIDwSwyE2lxsGHnB+qJhPJoZNmTwi+UmCYhzkfN3XfApFcNwyQpGFZSiS Zs2pGJYg1jD1eta9XkRUIvo43NEOLATpfv3IbfQxANiIC5EHmT/GuqalYXfUy7jRGsJA U0kA== X-Gm-Message-State: ACgBeo0Ff/8XLDha6EtRc5hgUAivzLBWU0PIk8x15cUr6xD8/nkYr2gQ XmW2yiORIIzK1dp0+gTGRPALNA== X-Google-Smtp-Source: AA6agR7fUZIXsWkE0F2bC+8/U1IRwKDX/Y5TdrNQKqE5GQt9dwI1CNSkYpmybU/ZOO1GocJFVjyToA== X-Received: by 2002:ac8:5f0d:0:b0:343:6e79:f1a2 with SMTP id x13-20020ac85f0d000000b003436e79f1a2mr36403458qta.657.1662305028680; Sun, 04 Sep 2022 08:23:48 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id v5-20020a05620a440500b006b9a89d408csm6510797qkp.100.2022.09.04.08.23.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Sep 2022 08:23:47 -0700 (PDT) Date: Sun, 4 Sep 2022 11:23:46 -0400 From: Tom Rini To: Sergei Antonov Cc: u-boot@lists.denx.de, Simon Glass , patrick.delaunay@foss.st.com, Marek Vasut Subject: Re: [PATCH] scripts: config_whitelist: CONFIG_SYS_FLASH_AUTOPROTECT_LIST Message-ID: <20220904152346.GU7942@bill-the-cat> References: <20220903143030.1969387-1-saproj@gmail.com> <20220903143124.GR7942@bill-the-cat> <20220903161556.GS7942@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="elthcBrLbYw+6uqa" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett 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 --elthcBrLbYw+6uqa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 04, 2022 at 12:26:04PM +0300, Sergei Antonov wrote: > On Sun, 4 Sept 2022 at 12:23, Sergei Antonov wrote: > > > > On Sat, 3 Sept 2022 at 19:16, Tom Rini wrote: > > > > > > On Sat, Sep 03, 2022 at 05:49:50PM +0300, Sergei Antonov wrote: > > > > On Sat, 3 Sept 2022 at 17:31, Tom Rini wrote: > > > > > > > > > > On Sat, Sep 03, 2022 at 05:30:30PM +0300, Sergei Antonov wrote: > > > > > > > > > > > CONFIG_SYS_FLASH_AUTOPROTECT_LIST is a feature of drivers/mtd/c= fi_flash.c > > > > > > driver. It allows to specify a range of protected eraseblocks o= n flash memory. > > > > > > > > > > > > Fixes build error: > > > > > > Error: You must add new CONFIG options using Kconfig > > > > > > The following new ad-hoc CONFIG options were detected: > > > > > > CONFIG_SYS_FLASH_AUTOPROTECT_LIST > > > > > > > > > > > > Signed-off-by: Sergei Antonov > > > > > > --- > > > > > > scripts/config_whitelist.txt | 1 + > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > Please move this to Kconfig so that it can be enabled, thanks. > > > > > > > > What type must it be in Kconfig? Note, it is an array initializer > > > > similar to CONFIG_SYS_BAUDRATE_TABLE. > > > > > > Ah, ugh. So, it's also currently unused code, what does it look like = in > > > the platform you're making use of this on? > > > > In my _defconfig I use this line: > > CONFIG_SYS_FLASH_AUTOPROTECT_LIST=3D"{{0x80000000, 0x40000}}" > > To protect the first 256 KB of flash memory. >=20 > Please, disregard the previous message. I was too hasty to reply. >=20 > I have include/configs/myplatform.h file which contains this line: > #define CONFIG_SYS_FLASH_AUTOPROTECT_LIST {{0x80000000, 0x40000}} >=20 > And I could not convert it to Kconfig string parameter. Can this information be obtained from an existing device tree binding on the platform? --=20 Tom --elthcBrLbYw+6uqa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmMUwv4ACgkQFHw5/5Y0 tyyF+gv/dZkWfLYnSX0S7BCQpj3DmNBzv6v80cb53wcSvDfymZBb6ChoXs7tCQGB OC7sgLm44X2lTr1eEFmGSrrjOs3Snn2D0bba/vWQj8g0BLUAfVfLvOy0vrC7hhDs xSRlRO4dWNHhVIy04FChai9Qwz0vxkyZRr9W8r2XaLcw/1LEfcjPh6+j10HFFkAM aftU6KmphraV4bmU+F0ZkaKvDurpLVz8H5w1FMjv7a+k4/gHsxa8PbuuzhhtbrnY MjT9GE0FnMjT3Vkzwj9YTGaPVz+cKwFpzg5XUUvscLfbYrrGI0iwLQGdsR99q5lZ 0xy+GwqmTjjKcT0oUiVEDl+PjcBMczvnTQtdxsUdprqNlDh7hXnin7BdQIrWAOcc a0U8p3Xau+hYQ2Q60a1JmIKQrJfzQgLYri+tQwkQ2udW2f5h9KTXeOi8gKzsYUCf 62UMaEoCQY8zbMCwP6nKuH95zJC763iUKlyYLTqz+40gvuRTJqtdpUj1dXFM/Dzh xN5mkYXM =cAuk -----END PGP SIGNATURE----- --elthcBrLbYw+6uqa--