From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.free-electrons.com ([62.4.15.54]) by casper.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eeeqX-0008Nd-AI for linux-mtd@lists.infradead.org; Thu, 25 Jan 2018 10:33:30 +0000 Date: Thu, 25 Jan 2018 11:33:17 +0100 From: Boris Brezillon To: Fabio Estevam Cc: Fabio Estevam , Han Xu , linux-mtd@lists.infradead.org, David Wolfe Subject: Re: [PATCH v6 1/2] mtd: fsl-quadspi: Distinguish the mtd device names Message-ID: <20180125113317.5e74d178@bbrezillon> In-Reply-To: References: <1516285721-32294-1-git-send-email-fabio.estevam@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 25 Jan 2018 08:20:59 -0200 Fabio Estevam wrote: > Hi Boris, > > On Thu, Jan 18, 2018 at 12:28 PM, Fabio Estevam wrote: > > Currently on a imx6sx-sdb board, which has two SPI NOR chips connected > > to QSPI2 the following output from /proc/mtd is seen: > > > > # cat /proc/mtd > > dev: size erasesize name > > mtd0: 01000000 00010000 "21e4000.qspi" > > mtd1: 01000000 00010000 "21e4000.qspi" > > > > Attempts to partition them on the kernel command line result in both > > chips with identical (and identically named) partitions, which is > > an inconvenient behavior. > > > > Assign a different mtd->name for each mtd device to avoid this problem. > > > > After this change the output from /proc/mtd becomes: > > > > # cat /proc/mtd > > dev: size erasesize name > > mtd0: 01000000 00010000 "21e4000.qspi-0" > > mtd1: 01000000 00010000 "21e4000.qspi-1" > > > > In order to keep mtdparts compatibility keep the mtd->name > > unchanged when a single SPI NOR is present. > > > > Reported-by: David Wolfe > > Signed-off-by: Fabio Estevam > > Reviewed-by: Boris Brezillon > > --- > > Changes since v5: > > - Preserve the label value, if any. (Boris) > > Do you plan to apply this one for 4.17? I'm not applying spi-nor patches, and Cyrille already sent me his PR for 4.16. So yes, I'd say it will be queued for 4.17. Is this a problem?