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 X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no 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 7A526C433F5 for ; Thu, 16 Sep 2021 15:00:50 +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 BBC1D60F6B for ; Thu, 16 Sep 2021 15:00:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BBC1D60F6B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nic.cz 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 6889A83129; Thu, 16 Sep 2021 17:00:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz 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; secure) header.d=nic.cz header.i=@nic.cz header.b="J7w0Tc71"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84C618312F; Thu, 16 Sep 2021 17:00:35 +0200 (CEST) Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (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 DD5E683129 for ; Thu, 16 Sep 2021 17:00:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.behun@nic.cz Received: from thinkpad (unknown [172.20.6.87]) by mail.nic.cz (Postfix) with ESMTPSA id 82C95140664; Thu, 16 Sep 2021 17:00:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1631804429; bh=OMPDpO9lti8C5RXJv40kUe13cvJj8OulFsVd+ya5mIE=; h=Date:From:To; b=J7w0Tc71Lp4iDymcBU5eU7iWprA4Vf3d10RqGsVUGpN85M2ssvekNkj30bhgaxhur PajbzGf0mODvNIyXxsFOCLA96FcDvflWD9pHKhhECu/s+EED6PtU9Vb3XcXDPPQR+H pSRkadrXOQPtSezUeOPz8w5OK+YfRW0cCs2tEB/A= Date: Thu, 16 Sep 2021 17:00:28 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Patrick Delaunay , Marek Vasut , Tom Rini Cc: , Priyanka Jain , Heiko Schocher , Jagan Teki , Miquel Raynal , Christophe KERELLO , Patrice Chotard , Pali =?UTF-8?B?Um9ow6Fy?= , Vignesh R , U-Boot STM32 Subject: Re: [PATCH v3 2/2] mtd: spi: nor: force mtd name to "nor%d" Message-ID: <20210916170028.28005d26@thinkpad> In-Reply-To: <20210916155040.v3.2.Ia461e670c7438478aa8f8939209d45c818ccd284@changeid> References: <20210916140118.874028-1-patrick.delaunay@foss.st.com> <20210916155040.v3.2.Ia461e670c7438478aa8f8939209d45c818ccd284@changeid> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Hi Marek, Patrick, the patches that made this change also include patch https://source.denx.de/u-boot/u-boot/-/commit/dcb9a80359d699cf659c95b9b6e6604e2d68adb9 This patch was added so that when there are multiple identical SPI-NOR chips on the board, you can still select between them in the `mtd` command via the OF path. That's why the `mtd list` command lists OF path. In the discussion with Tom, we also were talking about backwards compatibility with mtdparts, and if I remember correctly, the conclusion was that mtdparts is deprecated: - many configs with MTDPARTS can now be converted to define the partitions via OF - the remaining which can't need their mtd driver updated Afterwards there will be no need for mtdpart. I think this is the correct solution here. Not the one where we are returning back to the "norN" names. Marek