Received: by 10.223.185.116 with SMTP id b49csp1046186wrg; Fri, 16 Feb 2018 11:25:04 -0800 (PST) X-Google-Smtp-Source: AH8x224nNqX0Na7LHWgqsYPAvN0ZW/G7m9dCt60pPK98KPXXLASXMtm25IR9CHJ4lcKgt1TtDlaA X-Received: by 2002:a17:902:b609:: with SMTP id b9-v6mr6555933pls.255.1518809104228; Fri, 16 Feb 2018 11:25:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518809104; cv=none; d=google.com; s=arc-20160816; b=Rd2Qr0Ouis33MsvmqyHNcMTd2Mz1TZyo8FWYMEpNPn+P0menHmo96zZOtnH2RRKtzg wsS0gZ9XMtcvmrtVTe5mX9uXfc5H+UDM1zkk8uNFknbkfWbyKIQiUWgHTZjN+6F57odx wHK6u2t9HfrJkqlFx1/FJQG4BL/8YL/jU9+/fgBBSSIKc19GDtatYEf2vexmL0U8BCAD tOXJ6nyXE0EhSmLwNw+zW7uispUlqQEoimjlSdc+xiO93tI8jcbtHURLKp5HonsgYcOV NaWGmya0UGqHcWzh3a/bQUJw1c/WONDoP35tmpd3hotpR4X5H1nK6NQqhzsf240MnH0q dcjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=HeTDaKGZdXtvnLeaaOTWhEF2udf1Cv9D6N6GQKW2l3c=; b=hSHi7Qer43RkIRE0yQLPPGBnCs5H6RV4BainCSq3iKPl3AuGAKt5Qq8nN93848Neqt 18A+rRYdoCEncAvrtdKSdViywxFYZcnXM+Zm+2+AUPVLCI5TFczpYBTjBStyorpMT88p HSKLNFz4IljmLa4MbrwACdvzapwRu69Pi4kpc8FRqzdDi5bsPMzbWz05QysdUWMcNoLE D9YlMFTzY4BeIx43lJGgDRv+W/dDXlkdsmFPwjFGj7WbusYeVTPh+egfaLCZO6AeuS0N RNI3j6Y4bJQ9qp6vdzIPNBTYHaObRYPchBgQ65vXOFYSHgg5IX5GzEDY35VTJcqx3ES6 Ul7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=JyXbm4Xv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si133613pll.500.2018.02.16.11.24.49; Fri, 16 Feb 2018 11:25:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=JyXbm4Xv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753191AbeBPTOJ (ORCPT + 99 others); Fri, 16 Feb 2018 14:14:09 -0500 Received: from vern.gendns.com ([206.190.152.46]:37334 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750946AbeBPTOG (ORCPT ); Fri, 16 Feb 2018 14:14:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HeTDaKGZdXtvnLeaaOTWhEF2udf1Cv9D6N6GQKW2l3c=; b=JyXbm4XvibbTtzvLGVx8GYmJHs WecH7REDxXsB9nDmwO57tJQl0GyI/nFLEkJG/evWGFK/UDkRklb9ALDNqGRJPUdbId2i07c07BKBm p4gvfXZihl/8741MAM84EXUy8WAEdJioVeAl/K6P8TbUkWp5TUrh3VZI+TM/8r23NIOsCm5SMzUWg lSpoT8AUXZ+vrLco+OyHkBTHuwiysfq6fqsSyYqkhLsRy3GR7uNGAUbFBzv7UGIiWW6hQ1wxqBxZs VMNXCcG2m+5GD9geGQJmQaowTbB2jE0e+t6gmbOdnKbk4T4z2qpnmSZNI4hZXABEGUMq5Bwa5bp18 HSsef5UA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:37836 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1emlRA-0013Tq-9l; Fri, 16 Feb 2018 14:12:48 -0500 Subject: Re: [PATCH 2/6] ARM: davinci: update the nand driver names To: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Russell King , Santosh Shilimkar , Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Bartosz Golaszewski References: <20180216164712.25898-1-brgl@bgdev.pl> <20180216164712.25898-3-brgl@bgdev.pl> From: David Lechner Message-ID: <0fd26035-6192-213d-4a45-02fa44fa7c39@lechnology.com> Date: Fri, 16 Feb 2018 13:14:14 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180216164712.25898-3-brgl@bgdev.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/16/2018 10:47 AM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Since commit d8e22fb4ccac ("ARM: da850: add the nand dev_id to the clock > lookup table") we can no longer correctly lookup the nand clock when > booting in legacy mode. Said commit added a dev_id to the nand clock > which must match and it doesn't correspond with the device name which > is "davinci_nand" instead of "davinci-nand". > > The driver name has been changed. Update the board files. > > Fixes: d8e22fb4ccac ("ARM: da850: add the nand dev_id to the clock lookup table") > Signed-off-by: Bartosz Golaszewski > --- > arch/arm/mach-davinci/board-da830-evm.c | 2 +- > arch/arm/mach-davinci/board-da850-evm.c | 2 +- > arch/arm/mach-davinci/board-dm355-evm.c | 2 +- > arch/arm/mach-davinci/board-dm355-leopard.c | 2 +- > arch/arm/mach-davinci/board-dm365-evm.c | 2 +- > arch/arm/mach-davinci/board-dm644x-evm.c | 2 +- > arch/arm/mach-davinci/board-dm646x-evm.c | 2 +- > arch/arm/mach-davinci/board-mityomapl138.c | 2 +- > arch/arm/mach-davinci/board-neuros-osd2.c | 2 +- > arch/arm/mach-davinci/board-sffsdr.c | 2 +- > 10 files changed, 10 insertions(+), 10 deletions(-) > > diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c > index f673cd7a6766..f8838c7b174b 100644 > --- a/arch/arm/mach-davinci/board-da830-evm.c > +++ b/arch/arm/mach-davinci/board-da830-evm.c > @@ -348,7 +348,7 @@ static struct resource da830_evm_nand_resources[] = { > }; > > static struct platform_device da830_evm_nand_device = { > - .name = "davinci_nand", > + .name = "davinci-nand", > .id = 1, > .dev = { > .platform_data = &da830_evm_nand_pdata, > diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c > index d898a94f6eae..828194045a2b 100644 > --- a/arch/arm/mach-davinci/board-da850-evm.c > +++ b/arch/arm/mach-davinci/board-da850-evm.c > @@ -266,7 +266,7 @@ static struct resource da850_evm_nandflash_resource[] = { > }; > > static struct platform_device da850_evm_nandflash_device = { > - .name = "davinci_nand", > + .name = "davinci-nand", > .id = 1, The clock lookup uses id == 0 ("davinci-nand.0"), so this is probably still broken unless you also change the id. > .dev = { > .platform_data = &da850_evm_nandflash_data, > diff --git a/arch/arm/mach-davinci/board-dm355-evm.c b/arch/arm/mach-davinci/board-dm355-evm.c > index e457f299cd44..58ca7f56e112 100644 > --- a/arch/arm/mach-davinci/board-dm355-evm.c > +++ b/arch/arm/mach-davinci/board-dm355-evm.c > @@ -98,7 +98,7 @@ static struct resource davinci_nand_resources[] = { > }; > > static struct platform_device davinci_nand_device = { > - .name = "davinci_nand", > + .name = "davinci-nand", > .id = 0, > > .num_resources = ARRAY_SIZE(davinci_nand_resources), > diff --git a/arch/arm/mach-davinci/board-dm355-leopard.c b/arch/arm/mach-davinci/board-dm355-leopard.c > index be997243447b..196238117f9a 100644 > --- a/arch/arm/mach-davinci/board-dm355-leopard.c > +++ b/arch/arm/mach-davinci/board-dm355-leopard.c > @@ -93,7 +93,7 @@ static struct resource davinci_nand_resources[] = { > }; > > static struct platform_device davinci_nand_device = { > - .name = "davinci_nand", > + .name = "davinci-nand", > .id = 0, > > .num_resources = ARRAY_SIZE(davinci_nand_resources), > diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c > index e75741fb2c1d..563d66df480b 100644 > --- a/arch/arm/mach-davinci/board-dm365-evm.c > +++ b/arch/arm/mach-davinci/board-dm365-evm.c > @@ -159,7 +159,7 @@ static struct resource davinci_nand_resources[] = { > }; > > static struct platform_device davinci_nand_device = { > - .name = "davinci_nand", > + .name = "davinci-nand", > .id = 0, > .num_resources = ARRAY_SIZE(davinci_nand_resources), > .resource = davinci_nand_resources, > diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c > index 85e6fb33b1ee..e42ae2163c75 100644 > --- a/arch/arm/mach-davinci/board-dm644x-evm.c > +++ b/arch/arm/mach-davinci/board-dm644x-evm.c > @@ -173,7 +173,7 @@ static struct resource davinci_evm_nandflash_resource[] = { > }; > > static struct platform_device davinci_evm_nandflash_device = { > - .name = "davinci_nand", > + .name = "davinci-nand", > .id = 0, > .dev = { > .platform_data = &davinci_evm_nandflash_data, > diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c > index cb0a41e83582..614dd211e6fc 100644 > --- a/arch/arm/mach-davinci/board-dm646x-evm.c > +++ b/arch/arm/mach-davinci/board-dm646x-evm.c > @@ -108,7 +108,7 @@ static struct resource davinci_nand_resources[] = { > }; > > static struct platform_device davinci_nand_device = { > - .name = "davinci_nand", > + .name = "davinci-nand", > .id = 0, > > .num_resources = ARRAY_SIZE(davinci_nand_resources), > diff --git a/arch/arm/mach-davinci/board-mityomapl138.c b/arch/arm/mach-davinci/board-mityomapl138.c > index b73ce7bae81f..bf3659a21897 100644 > --- a/arch/arm/mach-davinci/board-mityomapl138.c > +++ b/arch/arm/mach-davinci/board-mityomapl138.c > @@ -422,7 +422,7 @@ static struct resource mityomapl138_nandflash_resource[] = { > }; > > static struct platform_device mityomapl138_nandflash_device = { > - .name = "davinci_nand", > + .name = "davinci-nand", > .id = 1, Same here, id probably needs to be 0. > .dev = { > .platform_data = &mityomapl138_nandflash_data, > diff --git a/arch/arm/mach-davinci/board-neuros-osd2.c b/arch/arm/mach-davinci/board-neuros-osd2.c > index 4da210a1a110..04132494a7c9 100644 > --- a/arch/arm/mach-davinci/board-neuros-osd2.c > +++ b/arch/arm/mach-davinci/board-neuros-osd2.c > @@ -107,7 +107,7 @@ static struct resource davinci_ntosd2_nandflash_resource[] = { > }; > > static struct platform_device davinci_ntosd2_nandflash_device = { > - .name = "davinci_nand", > + .name = "davinci-nand", > .id = 0, > .dev = { > .platform_data = &davinci_ntosd2_nandflash_data, > diff --git a/arch/arm/mach-davinci/board-sffsdr.c b/arch/arm/mach-davinci/board-sffsdr.c > index d85accf7f760..c8569c8aa6e3 100644 > --- a/arch/arm/mach-davinci/board-sffsdr.c > +++ b/arch/arm/mach-davinci/board-sffsdr.c > @@ -83,7 +83,7 @@ static struct resource davinci_sffsdr_nandflash_resource[] = { > }; > > static struct platform_device davinci_sffsdr_nandflash_device = { > - .name = "davinci_nand", /* Name of driver */ > + .name = "davinci-nand", /* Name of driver */ > .id = 0, > .dev = { > .platform_data = &davinci_sffsdr_nandflash_data, > Getting out of scope of this patch, but... If there is only one nand device per board, then the id should probably be -1 instead of 0 for all of these boards.