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 9D9E3C6FA82 for ; Sun, 4 Sep 2022 15:30:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1261A8418B; Sun, 4 Sep 2022 17:30:44 +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="dm/chHKm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AA57984001; Sun, 4 Sep 2022 17:30:42 +0200 (CEST) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (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 968A78418B for ; Sun, 4 Sep 2022 17:30:38 +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-x82a.google.com with SMTP id h22so4772841qtu.2 for ; Sun, 04 Sep 2022 08:30:38 -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=5z5Mn5MfjR0TqFk+YkdS3dcvV/gmaDSDfiOLGytm1VM=; b=dm/chHKmP5IjYPMWRNUAqi7/ZYeGUy7eXAlfhkOTWMCFq4PHneziOhOI3hPwrU6dVn DubeLJWKF4Jgeie05SRlBE5aiLcuMdM46pFYRsVe/+yUjFVP/4/o+cl9UmYQbLpI3fRL u6Lu7TkzPFeqoeCrm+HZJexfJC/x9FFQwg7MM= 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=5z5Mn5MfjR0TqFk+YkdS3dcvV/gmaDSDfiOLGytm1VM=; b=WHn2uekgOWLoMQorqyftIfvx6xhj8dW5qcBk5jMAGTgNewKWlYBnwiLLwRWQpfVc1/ q91UOYYwn+O7mxViQT0TiNFPjZYhEdMfZq6A4IgPrBWKkatFKHxdMb4QBN6iTF6bBXKy OG8r62Uq05IeuDspvi1HNs3Ft8dF+sMuiP7SnGAKYjo5HbqGIyFM99g/leUyqk1xNeEz dxna4LBzCL7thF+JOQLbbHXYVZDQBxH+uTNBPHqSbzuxXGY7H9P7Nnhy5e/et0+a8jIp KUN8L3RCaBSWMpi/Efdql9RSeLPBh+8OWmTNRp72y1hC/FqFu/V/eDHW1krgwl8X48jr eC2g== X-Gm-Message-State: ACgBeo24EUoY/H5las2Y7dVHnODpJNvZvf+07jGKl0KYa//wqW6Q8ibo pvYjJ/l2WY4xAG79Hvt5lMisiaR3UN6oEw== X-Google-Smtp-Source: AA6agR7PTpSrc+crkH3OeY5U4romEzISgnqANczHlIT33MiaNVdgRVS7/oCC0hho3HakvmPCAgcd1Q== X-Received: by 2002:a05:622a:48d:b0:343:7386:8b6f with SMTP id p13-20020a05622a048d00b0034373868b6fmr35541193qtx.280.1662305437350; Sun, 04 Sep 2022 08:30:37 -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 u4-20020a37ab04000000b006bbfc742511sm6057166qke.12.2022.09.04.08.30.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Sep 2022 08:30:36 -0700 (PDT) Date: Sun, 4 Sep 2022 11:30:35 -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: <20220904153035.GV7942@bill-the-cat> References: <20220903143030.1969387-1-saproj@gmail.com> <20220903143124.GR7942@bill-the-cat> <20220903161556.GS7942@bill-the-cat> <20220904152346.GU7942@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MXJOg2djshNyWgx2" 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 --MXJOg2djshNyWgx2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 04, 2022 at 06:28:56PM +0300, Sergei Antonov wrote: > On Sun, 4 Sept 2022 at 18:23, Tom Rini wrote: > > > > > > What type must it be in Kconfig? Note, it is an array initializ= er > > > > > > similar to CONFIG_SYS_BAUDRATE_TABLE. > > > > > > > > > > Ah, ugh. So, it's also currently unused code, what does it look l= ike 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. > > > > > > Please, disregard the previous message. I was too hasty to reply. > > > > > > I have include/configs/myplatform.h file which contains this line: > > > #define CONFIG_SYS_FLASH_AUTOPROTECT_LIST {{0x80000000, 0x40000}} > > > > > > 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 > Device tree exists. No, DT does not currently contain this > information. But it can be added. OK. But, is there an existing binding, or would it be a new one? I'm wary of adding and upstreaming a new binding here, as the next option would be to rename this to CFG_SYS_FLASH_AUTOPROTECT_LIST and continue to #define it. --=20 Tom --MXJOg2djshNyWgx2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmMUxJsACgkQFHw5/5Y0 tyzvewv+NX1zMW9mEQd1LUOW4jPLHEcb7F7LLHv0awFS7eKuQb//6Nu1C1LOzU8d miBDmo5qXcoJSRVNPHQr5V1Bec1MMZiumeB3rboIIj0OdF6OBvN+NWUvs7fR+jJD b+UEZZTYtlcx9i+HT+huHPrDu+4kFvoDbTPdG/V82sSGJsAuzPPIq7plKZ5xTVR8 YFrnk8RWt6ZO2lNMUEg1KHsUklip70QCc/bwvW+h+0mBhwxGnMB3Ntw+OjXwEtEH CmwoPdhM1u2XLDZRQ3OmbgnFNDst1dZ2lz3iK5JCzxQ5lQ6dwYC73T/7kG/a4usT eeknkFlo2UXucNHPBZUAEDAwv4whcZ7bZFqfFmELF3uD725AOa+rtll02Y9tDTih dLO+Ltpowb2Dy4VWWwUNSFjTpRPBECyxMmdBXeb4nbkDFNE1fkvP/Z420PSpZKsl 0GZe2Fx2f5rMC7hBFCbQH63Mw8B6/MJ+i/pzqTHFz3K0pcChIc0ODa1NvxHeudHo OJN56ZZj =FOWd -----END PGP SIGNATURE----- --MXJOg2djshNyWgx2--