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 1F082C433F5 for ; Tue, 4 Jan 2022 13:53:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E86DA83053; Tue, 4 Jan 2022 14:52:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.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=foss.st.com header.i=@foss.st.com header.b="OAJNzVtV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 304CB8303A; Tue, 4 Jan 2022 14:29:15 +0100 (CET) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 75B798192E for ; Tue, 4 Jan 2022 14:29:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=7003d21681=patrick.delaunay@foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 204923SU029252; Tue, 4 Jan 2022 14:24:13 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=Frq5gDoyqiVYQIragDWH3HwGfwiO7C6nSgm/S+do0ho=; b=OAJNzVtVgkUzB33ddfI4yVUDV79i/mUFph565W1Y7PJ3wPFP9Xrv65i497h99P9Az0TZ Y4jufvw3RpSHA7wGLZsy0sHp2TWWiwFE2J79iV00i6PPIqWIEcbDAR5qL+kcqy2BR6jV wBS0Y8anITzOVTaXy+bK1Rq6ApipF40JB21wkbYjzHCwo/31aMkVoCq13o24M/mDZKjB 3VJVxN3UtLujBNDT6snNXGYIQG2sTV+whWcNgVbf710GfsIo2oRwIfrefVYkVQYZ2ooR R95N868l4uiiFXEeosGCrawzjhJnNTXqIEdm94HPPMhm4o2jZNNf+J2znkaLrqfV5YWh jQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3dcagrb2ha-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jan 2022 14:24:13 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 76D16100034; Tue, 4 Jan 2022 14:24:07 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 0416626029E; Tue, 4 Jan 2022 14:24:07 +0100 (CET) Received: from localhost (10.75.127.48) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Tue, 4 Jan 2022 14:24:06 +0100 From: Patrick Delaunay To: CC: Marek Vasut , Simon Glass , "Patrick Delaunay" , Aaron Williams , Adam Ford , "Aleksandar Gerasimovski" , Alison Wang , Andes , "Andrew F. Davis" , Angelo Dureghello , Ashish Kumar , Bin Meng , Chee Hong Ang , Chin-Liang See , "Christophe Leroy" , Dalon Westergreen , Daniel Schwierzeck , David Feng , "Dinh Nguyen" , Dirk Eibach , "Eugen Hristev" , Fabio Estevam , Heiko Schocher , Heinrich Schuchardt , "Igor Opaniuk" , Ilko Iliev , "Jagan Teki" , Jassi Brar , Jens Scharsig , Kamil Lulko , Kristian Amlie , Liviu Dudau , Lukasz Majewski , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Marek Vasut , Masakazu Mochizuki , Masami Hiramatsu , Max Filippov , "Michael Walle" , Michal Simek , Mingkai Hu , Niel Fourie , Nobuhiro Iwamatsu , Patrice Chotard , "Paul Burton" , Peng Fan , Priyanka Jain , Qiang Zhao , Rainer Boschung , Rajesh Bhagat , Rasmus Villemoes , Rick Chen , Ruchika Gupta , Sean Anderson , Shengzhou Liu , Siew Chin Lim , Simon Guinot , Sinan Akman , Stefan Roese , Stelian Pop , Tetsuyuki Kobayashi , Thomas Chou , Thomas Fitzsimmons , "TsiChung Liew" , Tuomas Tynkkynen , Usama Arif , Vignesh R , Vikas Manocha , Vladimir Zapolskiy , Wolfgang Denk , Wolfgang Wegner , egnite GmbH , , =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Subject: [PATCH v1 0/5] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig Date: Tue, 4 Jan 2022 14:23:56 +0100 Message-ID: <20220104132401.3573475-1-patrick.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-04_05,2022-01-04_01,2021-12-02_01 X-Mailman-Approved-At: Tue, 04 Jan 2022 14:52:13 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 Proposal after Marek comment in [1], move CONFIG_SYS_MAX_FLASH_BANKS and CONFIG_SYS_MAX_FLASH_BANKS_DETECT in Kconfig. Series based on the previous RFC [2], rebased on top of the next branch and added reviewed-by. I wasn't not sure of the solution when I introduced the CFI_FLASH_BANKS to simplify the support of all the options in include/mtd/cfi_flash.h No compilation issue after rebase but not tested = https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/10431 [1] [v3,1/2] mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported http: //patchwork.ozlabs.org/project/uboot/patch/20210916155040.v3.1.I81b4f1edfe925b001299e3b7ba0cf602d9268d59@changeid/#2754501 [2] [RFC] configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig http: //patchwork.ozlabs.org/project/uboot/list/?series=276760&state=* Changes in v1: - update drivers/mtd/spi/spi-nor-core.c for cfi_mtd_nb needed after RFC rebase - solve issue in cfi_flash.h, with CFI_FLASH_BANKS=CONFIG_SYS_MAX_FLASH_BANKS_DETECT Patrick Delaunay (5): cmd: Fix up warnings in flash.c mtd: cfi: introduce CFI_FLASH_BANKS mtd: cfi: change CONFIG_SYS_MAX_FLASH_BANKS_DETECT as boolean configs: Migrate CONFIG_SYS_MAX_FLASH_BANKS to Kconfig Convert CONFIG_AT91_EFLASH to Kconfig README | 3 - arch/arm/mach-at91/Kconfig | 8 + cmd/bootm.c | 2 +- cmd/flash.c | 247 +++++++++---------- common/flash.c | 2 +- common/update.c | 4 +- configs/3c120_defconfig | 1 + configs/M5253DEMO_defconfig | 1 + configs/MPC8548CDS_36BIT_defconfig | 1 + configs/MPC8548CDS_defconfig | 1 + configs/MPC8548CDS_legacy_defconfig | 1 + configs/P3041DS_NAND_defconfig | 1 + configs/P3041DS_SDCARD_defconfig | 1 + configs/P3041DS_SPIFLASH_defconfig | 1 + configs/P3041DS_defconfig | 1 + configs/P4080DS_SDCARD_defconfig | 1 + configs/P4080DS_SPIFLASH_defconfig | 1 + configs/P4080DS_defconfig | 1 + configs/P5040DS_NAND_defconfig | 1 + configs/P5040DS_SDCARD_defconfig | 1 + configs/P5040DS_SPIFLASH_defconfig | 1 + configs/P5040DS_defconfig | 1 + configs/T1042D4RDB_NAND_defconfig | 1 + configs/T1042D4RDB_SDCARD_defconfig | 1 + configs/T1042D4RDB_SPIFLASH_defconfig | 1 + configs/T1042D4RDB_defconfig | 1 + configs/T2080QDS_NAND_defconfig | 1 + configs/T2080QDS_SDCARD_defconfig | 1 + configs/T2080QDS_SECURE_BOOT_defconfig | 1 + configs/T2080QDS_SPIFLASH_defconfig | 1 + configs/T2080QDS_defconfig | 1 + configs/T4240RDB_SDCARD_defconfig | 1 + configs/T4240RDB_defconfig | 1 + configs/boston32r2_defconfig | 1 + configs/boston32r2el_defconfig | 1 + configs/boston32r6_defconfig | 1 + configs/boston32r6el_defconfig | 1 + configs/boston64r2_defconfig | 1 + configs/boston64r2el_defconfig | 1 + configs/boston64r6_defconfig | 1 + configs/boston64r6el_defconfig | 1 + configs/cobra5272_defconfig | 1 + configs/comtrend_ct5361_ram_defconfig | 1 + configs/comtrend_wap5813n_ram_defconfig | 1 + configs/ethernut5_defconfig | 1 + configs/huawei_hg556a_ram_defconfig | 1 + configs/j7200_evm_a72_defconfig | 1 + configs/j7200_evm_r5_defconfig | 1 + configs/j721e_evm_a72_defconfig | 1 + configs/j721e_hs_evm_a72_defconfig | 1 + configs/ls1021aqds_ddr4_nor_defconfig | 1 + configs/ls1021aqds_ddr4_nor_lpuart_defconfig | 1 + configs/ls1021aqds_nand_defconfig | 1 + configs/ls1021aqds_nor_SECURE_BOOT_defconfig | 1 + configs/ls1021aqds_nor_defconfig | 1 + configs/ls1021aqds_nor_lpuart_defconfig | 1 + configs/ls1021aqds_sdcard_ifc_defconfig | 1 + configs/ls1046aqds_SECURE_BOOT_defconfig | 1 + configs/ls1046aqds_defconfig | 1 + configs/ls1046aqds_lpuart_defconfig | 1 + configs/ls1046aqds_nand_defconfig | 1 + configs/ls1046aqds_sdcard_ifc_defconfig | 1 + configs/ls1046aqds_tfa_SECURE_BOOT_defconfig | 1 + configs/ls1046aqds_tfa_defconfig | 1 + configs/ls1088aqds_defconfig | 1 + configs/ls1088aqds_sdcard_ifc_defconfig | 1 + configs/ls1088aqds_tfa_defconfig | 1 + configs/ls2080aqds_SECURE_BOOT_defconfig | 1 + configs/ls2080aqds_defconfig | 1 + configs/ls2088aqds_tfa_defconfig | 1 + configs/qemu_arm64_defconfig | 2 + configs/qemu_arm_defconfig | 2 + configs/r8a77990_ebisu_defconfig | 1 + configs/r8a77995_draak_defconfig | 1 + configs/rcar3_salvator-x_defconfig | 1 + configs/rcar3_ulcb_defconfig | 1 + configs/sfr_nb4-ser_ram_defconfig | 1 + configs/socrates_defconfig | 1 + drivers/mtd/Kconfig | 27 ++ drivers/mtd/cfi_flash.c | 6 +- drivers/mtd/cfi_mtd.c | 4 +- drivers/mtd/spi/spi-nor-core.c | 5 +- include/configs/10m50_devboard.h | 1 - include/configs/3c120_devboard.h | 1 - include/configs/M5208EVBE.h | 1 - include/configs/M5235EVB.h | 1 - include/configs/M5249EVB.h | 1 - include/configs/M5253DEMO.h | 1 - include/configs/M5272C3.h | 1 - include/configs/M5275EVB.h | 1 - include/configs/M5282EVB.h | 1 - include/configs/M53017EVB.h | 1 - include/configs/M5329EVB.h | 1 - include/configs/M5373EVB.h | 1 - include/configs/MCR3000.h | 1 - include/configs/MPC837XERDB.h | 1 - include/configs/MPC8540ADS.h | 1 - include/configs/MPC8548CDS.h | 1 - include/configs/MPC8560ADS.h | 1 - include/configs/P1010RDB.h | 1 - include/configs/P2041RDB.h | 1 - include/configs/T102xRDB.h | 1 - include/configs/T104xRDB.h | 1 - include/configs/T208xQDS.h | 1 - include/configs/T208xRDB.h | 1 - include/configs/T4240RDB.h | 1 - include/configs/adp-ae3xx.h | 6 - include/configs/adp-ag101p.h | 3 - include/configs/am335x_evm.h | 1 - include/configs/am3517_evm.h | 1 - include/configs/amcore.h | 1 - include/configs/armadillo-800eva.h | 1 - include/configs/astro_mcf5373l.h | 1 - include/configs/at91sam9263ek.h | 1 - include/configs/ax25-ae350.h | 6 - include/configs/bcm7445.h | 2 - include/configs/blanche.h | 1 - include/configs/bmips_bcm6338.h | 1 - include/configs/bmips_bcm6348.h | 1 - include/configs/bmips_bcm6358.h | 1 - include/configs/bmips_bcm6368.h | 1 - include/configs/boston.h | 2 +- include/configs/cobra5272.h | 1 - include/configs/colibri_pxa270.h | 1 - include/configs/corenet_ds.h | 1 - include/configs/da850evm.h | 1 - include/configs/devkit3250.h | 1 - include/configs/dra7xx_evm.h | 1 - include/configs/draak.h | 1 - include/configs/eb_cpu5282.h | 1 - include/configs/ebisu.h | 1 - include/configs/edminiv2.h | 1 - include/configs/ethernut5.h | 2 - include/configs/gazerbeam.h | 1 - include/configs/ids8313.h | 1 - include/configs/imx27lite-common.h | 1 - include/configs/integrator-common.h | 1 - include/configs/j721e_evm.h | 1 - include/configs/km/km-mpc83xx.h | 1 - include/configs/km/pg-wcom-ls102xa.h | 1 - include/configs/kmcent2.h | 1 - include/configs/kzm9g.h | 1 - include/configs/ls1021aqds.h | 1 - include/configs/ls1021atwr.h | 1 - include/configs/ls1043aqds.h | 1 - include/configs/ls1043ardb.h | 1 - include/configs/ls1046aqds.h | 1 - include/configs/ls1088aqds.h | 1 - include/configs/ls1088ardb.h | 1 - include/configs/ls2080aqds.h | 1 - include/configs/ls2080ardb.h | 1 - include/configs/lsxl.h | 1 - include/configs/malta.h | 1 - include/configs/mccmon6.h | 1 - include/configs/microblaze-generic.h | 1 - include/configs/mx6sabreauto.h | 1 - include/configs/octeon_ebb7304.h | 1 - include/configs/omap3_logic.h | 1 - include/configs/p1_p2_rdb_pc.h | 2 - include/configs/pm9261.h | 1 - include/configs/pm9263.h | 1 - include/configs/qemu-arm.h | 1 - include/configs/qemu-riscv.h | 2 - include/configs/r2dplus.h | 1 - include/configs/salvator-x.h | 1 - include/configs/sama5d3xek.h | 1 - include/configs/socfpga_arria10_socdk.h | 1 - include/configs/socfpga_soc64_common.h | 1 - include/configs/socrates.h | 1 - include/configs/stih410-b2260.h | 2 - include/configs/stm32f429-discovery.h | 1 - include/configs/stm32f429-evaluation.h | 1 - include/configs/stm32f469-discovery.h | 1 - include/configs/stm32f746-disco.h | 1 - include/configs/synquacer.h | 1 - include/configs/total_compute.h | 1 - include/configs/ulcb.h | 1 - include/configs/vexpress_aemv8a.h | 1 - include/configs/vexpress_common.h | 1 - include/configs/xtfpga.h | 1 - include/configs/zynq-common.h | 1 - include/mtd/cfi_flash.h | 17 +- scripts/config_whitelist.txt | 3 - 183 files changed, 252 insertions(+), 267 deletions(-) -- 2.25.1