Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D734C433EF for ; Thu, 16 Sep 2021 14:01:48 +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 926A060F70 for ; Thu, 16 Sep 2021 14:01:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 926A060F70 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.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 6B88A83146; Thu, 16 Sep 2021 16:01:39 +0200 (CEST) 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="51qOq+sI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5D13B83129; Thu, 16 Sep 2021 16:01:33 +0200 (CEST) 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 DAD9783146 for ; Thu, 16 Sep 2021 16:01:26 +0200 (CEST) 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=3893bebd9f=patrick.delaunay@foss.st.com Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18GCWXlq029318; Thu, 16 Sep 2021 16:01:22 +0200 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-type : content-transfer-encoding; s=selector1; bh=V/1PiIb5awsMj2wP/FiZJrZ3AJ1bR/+x96a5L+beOPk=; b=51qOq+sIKeXTSy+NYVWAzFFb8NTjupGMFC25YN2GenL50zpZBlpVG8jvbOXs8dI1V7ch f0Dnrtihh7UIny7rJXdEeNUe/2AjkoOYuRznJNslfnka42qfcBS4xo45BfAwfheJTuqR jgKHS6lhdrCzuo6R+aOldy/bfkMRp9qIv6m7SO3UmIiEVjV+OTMhrT+vaPxApSX+ZcsO 4yCfacGoxqz2QrzqNNyJhxcwUS+eVSiTk2T5NQjmlTSgjO3Oplv2v7LkN/jt2oo1pRSv g6hAlpr1+NihbqlEJphgzvS5gcn6dJWWAzWzIWdAcqJT8Xa1aX8uLgfxHj5kx2njIEbH JA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3b41kutcuc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Sep 2021 16:01:22 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 50BC210002A; Thu, 16 Sep 2021 16:01:21 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 272BC20FA59; Thu, 16 Sep 2021 16:01:21 +0200 (CEST) Received: from localhost (10.75.127.45) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 16 Sep 2021 16:01:21 +0200 From: Patrick Delaunay To: CC: Priyanka Jain , Heiko Schocher , Marek Vasut , Jagan Teki , Miquel Raynal , Christophe KERELLO , Patrice Chotard , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Patrick Delaunay , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Vignesh R , U-Boot STM32 Subject: [PATCH v3 0/2] mtd: spi: nor: force mtd name to "nor%d" Date: Thu, 16 Sep 2021 16:01:16 +0200 Message-ID: <20210916140118.874028-1-patrick.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-16_04,2021-09-16_01,2020-04-07_01 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 This serie is a V3 for http://patchwork.ozlabs.org/project/uboot/list/?series=262017&state=* http://patchwork.ozlabs.org/project/uboot/list/?series=262013&state=* Now the SPI nor are named "norN" with N after the CFI nor device: "nor0" to "norM" => N= M+1. See also an other proposal from Marek (not working after test) "mtd: spi-nor: Fix SF MTDIDS when registering multiple MTDs with DM enabled" http://patchwork.ozlabs.org/project/uboot/list/?series=262362 The first patch of the serie fixed the compilation issues around 'cfi_flash_num_flash_banks' found in CI: https://source.denx.de/u-boot/custodians/u-boot-stm/-/pipelines/9138 Patrick Changes in v3: - NEW: solve compilation issue when CONFIG_SYS_MAX_FLASH_BANKS is used - start index after the last CFI device, use CONFIG_SYS_MAX_FLASH_BANKS Changes in v2: - correct commit message Patrick Delaunay (2): mtd: cfi_flash: use cfi_flash_num_flash_banks only when supported mtd: spi: nor: force mtd name to "nor%d" drivers/mtd/spi/spi-nor-core.c | 15 ++++++++++++--- include/linux/mtd/spi-nor.h | 1 + include/mtd/cfi_flash.h | 8 +++++++- 3 files changed, 20 insertions(+), 4 deletions(-) -- 2.25.1