From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8A115140082 for ; Tue, 22 Apr 2014 12:37:53 +1000 (EST) Received: by mail-pd0-f176.google.com with SMTP id r10so4295788pdi.7 for ; Mon, 21 Apr 2014 19:37:50 -0700 (PDT) Date: Mon, 21 Apr 2014 23:30:45 +0800 From: Huang Shijie To: Hou Zhiqiang Subject: Re: [PATCH V4] mtd: m25p80: Modify the name of mtd_info Message-ID: <20140421153042.GA3498@localhost.localdomain> References: <1398078381-22452-1-git-send-email-B48286@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1398078381-22452-1-git-send-email-B48286@freescale.com> Cc: linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org, scottwood@freescale.com, mingkai.hu@freescale.com, computersforpeace@gmail.com, dwmw2@infradead.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Apr 21, 2014 at 07:06:21PM +0800, Hou Zhiqiang wrote: > To specify spi flash layouts by "mtdparts=..." in cmdline, we must > give mtd_info a fixed name,because the cmdlinepart's parser will > match the name of mtd_info given in cmdline. > Now, if use DT, the mtd_info's name will be spi->dev->name. It > consists of spi_master->bus_num, and the spi_master->bus_num maybe > dynamically fetched. So, in this case, replace the component bus_num > with thei physical address of spi master. > > Signed-off-by: Hou Zhiqiang > --- > V4: > add check no-NULL for pointer of master's device node, and if it failed > to get physcial address of the master, then name the mtd_info by the > name of spi->dev. > V3: > Fix a bug, matching unsigned long long with "%llx". > V2: > 1. Fix some code style issue. > 2. Cast physical address to unsigned long long. > > drivers/mtd/devices/m25p80.c | 16 ++++++++++++++-- please rebase this patch on the latest l2-mtd tree. thanks Huang Shijie