From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 7 Oct 2017 11:22:52 +0200 From: Boris Brezillon To: Robert Jarzmik Cc: Linus Walleij , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, arm@kernel.org Subject: Re: [PATCH] ARM: pxa: cm-x255: Fix up GPIO NAND device name in table Message-ID: <20171007112252.37db396b@bbrezillon> In-Reply-To: <877ew7fkvj.fsf@belgarion.home> References: <20171006215144.18039-1-linus.walleij@linaro.org> <20171007074939.516ae693@bbrezillon> <877ew7fkvj.fsf@belgarion.home> 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 Sat, 07 Oct 2017 10:00:16 +0200 Robert Jarzmik wrote: > Boris Brezillon writes: > > > On Fri, 6 Oct 2017 23:51:44 +0200 > > Linus Walleij wrote: > > > >> My patch set the device name wrong because I confused the > >> device name for a partition name. Sorry. > >> > >> Cc: arm@kernel.org > >> Fixes: ("mtd: nand: gpio: Convert to use GPIO descriptors") > >> Reported-by: Robert Jarzmik > >> Signed-off-by: Linus Walleij > >> --- > >> This can be squashed into the commit or applied on top > >> as a fix. The original patch was ACKed by the ARM SoC > >> maintainers so I believe this is fine to apply. > >> --- > >> arch/arm/mach-pxa/cm-x255.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/arch/arm/mach-pxa/cm-x255.c b/arch/arm/mach-pxa/cm-x255.c > >> index f8d67acb7194..fa8e7dd4d898 100644 > >> --- a/arch/arm/mach-pxa/cm-x255.c > >> +++ b/arch/arm/mach-pxa/cm-x255.c > >> @@ -178,7 +178,7 @@ static inline void cmx255_init_nor(void) {} > >> #if defined(CONFIG_MTD_NAND_GPIO) || defined(CONFIG_MTD_NAND_GPIO_MODULE) > >> > >> static struct gpiod_lookup_table cmx255_nand_gpiod_table = { > >> - .dev_id = "cmx255-nand", > >> + .dev_id = "gpio-nand", > > > > Are you sure it works? AFAIR, you have to set "." > > here, which, assuming there's only one gpio-nand dev, would give > > > > .dev_id = "gpio-nand.0", > I'm sure Linus is correct this time. > This is because : > static struct platform_device cmx255_nand = { > ... > .id = -1, > ... > > This -1 is the reason it will be "gpio-nand". Right. I thought -1 was PLATFORM_DEVID_AUTO, but it's PLATFORM_DEVID_NONE. I'll squash the change in the initial commit. Thanks, Boris > > Acked-by: Robert Jarzmik >