Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4087872imm; Mon, 25 Jun 2018 09:30:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKQTQ7S8lQAUHfUosQUeDhk0t7ECAZ+z7DK2Q0rWgKPvD8sgrep18MHhVKSYg4P4+XKgwsB X-Received: by 2002:a17:902:6b86:: with SMTP id p6-v6mr13194159plk.75.1529944229777; Mon, 25 Jun 2018 09:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529944229; cv=none; d=google.com; s=arc-20160816; b=rlc8XBhfuBL+GJuGc25YImk0nHlVkNYqXtvTfKbqIVIQRGnoWf0tZaWL3Yyq9ui33a kyhZtVQ58LaBMBIcpFC31cBdE6Z29VSCFGucCkKq7V10TcMkzGevxD0Xrz7hxX9OuTgg 8WapXr+/a0OKt5J9Y1yt+jTOFGbGfL9jB8wD75jOrQddSvtryNNFle0TQxr9xDouE4J2 eUu4Qx+0ql5gB0fnf82zTFGMcQa/MuP3TDt7F32bBlJAtIAbZ6Zvff5MHKvB0CPSCkbF h2qBlkEFNFX05pDjyP8Gqz2piBqhaItGBKScaLEimChJPoRKI22D+R/k4GDveAdXp1p2 xfRw== 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=r91C6+aK/61YDGvR398KlNuGauI9OXfL1vw5DA5xmwU=; b=hPBY5NADv2umBSd2V6DfR85JeCD+5kTy40zL9Qju5M840CfPJj4NREX2IYMvBJstpc 8IC+3zSmUi7N9KDJAR6fyeMf5yrPcQV0WsBCdrBSAviAh7CCjyCzgduJ+VJxwe20OKiB K9pj6A2n8i8mqa5zZpmNbOXC995L688KTbdlhU1GQ0xOkT7FxjAO0oXEAjJZ+3933UY2 1nCUP6fMBDbvurReArbhSSuGPrjzJirvBvavVeeTHwx8tQibBtigUJj66HcjWPrgb+Sq TOOovB/Dmz/jiP8RpRubQinsC/XILPnBj1t/D1gsNfwYDwfNTflGOMEr8TVIzzn8j60l rocQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=tMM0XH+b; 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 g66-v6si8609289pgc.350.2018.06.25.09.30.14; Mon, 25 Jun 2018 09:30:29 -0700 (PDT) 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=tMM0XH+b; 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 S1754385AbeFYQ3b (ORCPT + 99 others); Mon, 25 Jun 2018 12:29:31 -0400 Received: from vern.gendns.com ([206.190.152.46]:49610 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752059AbeFYQ3a (ORCPT ); Mon, 25 Jun 2018 12:29:30 -0400 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=r91C6+aK/61YDGvR398KlNuGauI9OXfL1vw5DA5xmwU=; b=tMM0XH+bf+eTX3sYvWvUzX978k FRREJ6VG8WenwisleIUgdubgVixlCFpGAA8qvY/m6aI4wJxONvZWzD8RSI7JYTgRTdO6EjE5HO7E3 hg7/2YK1jrIQkax5UasJ3wYaAJ3pdgiU2SlUKnJ3eJvHZ+7dI/gaWXrCRAZt17X4DzJfqAaX+LRUE ZE9uvqVRPQYC/e7oEmpoIrLOC1tijRXpdN7ge1bnALJm9BFFa5ZCmPNQaGeKOlq/A1u+god/ab8v5 inbWPXeF3inRQB1YQBu4ktjRs9lh282hCkKq1QQ8cdalhH6hlp3Gm+qkqtfhWDyaMKK5L5gFqua5p xjIe9oCQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:54456 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1fXUMr-001FnC-61; Mon, 25 Jun 2018 12:29:29 -0400 Subject: Re: [PATCH 6/9] ARM: davinci: da830-evm: use aemif platform driver To: Bartosz Golaszewski Cc: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Russell King , Michael Turquette , Stephen Boyd , arm-soc , LKML , linux-clk References: <20180625152920.11549-1-brgl@bgdev.pl> <20180625152920.11549-7-brgl@bgdev.pl> <0e4bc2fb-15fc-6422-a4a3-0918adf0b1b3@lechnology.com> From: David Lechner Message-ID: Date: Mon, 25 Jun 2018 11:29:27 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: 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 06/25/2018 11:23 AM, Bartosz Golaszewski wrote: > 2018-06-25 18:20 GMT+02:00 David Lechner : >> On 06/25/2018 10:29 AM, Bartosz Golaszewski wrote: >>> >>> From: Bartosz Golaszewski >>> >>> We now support board files in the aemif driver. Register a platform >>> device instead of using the handcrafted API in da830-evm. >>> >>> Signed-off-by: Bartosz Golaszewski >>> --- >>> arch/arm/mach-davinci/board-da830-evm.c | 56 +++++++++++++++++++------ >>> 1 file changed, 44 insertions(+), 12 deletions(-) >>> >>> diff --git a/arch/arm/mach-davinci/board-da830-evm.c >>> b/arch/arm/mach-davinci/board-da830-evm.c >>> index b2470141dba3..666db3cee08a 100644 >>> --- a/arch/arm/mach-davinci/board-da830-evm.c >>> +++ b/arch/arm/mach-davinci/board-da830-evm.c >>> @@ -28,6 +28,7 @@ >>> #include >>> #include >>> #include >>> +#include >>> #include >>> #include >>> @@ -333,14 +334,48 @@ static struct resource da830_evm_nand_resources[] = >>> { >>> }, >>> }; >>> -static struct platform_device da830_evm_nand_device = { >>> - .name = "davinci_nand", >>> - .id = 1, >>> - .dev = { >>> - .platform_data = &da830_evm_nand_pdata, >>> +static struct platform_device da830_evm_aemif_devices[] = { >>> + { >>> + .name = "davinci_nand", >>> + .id = 1, >> >> >> Actually, now that I've thought about it some more. It probably >> makes more sense to make all of the "davinci_nand" devices in this >> series use id = -1 since there is only one per board. It looks like >> da850 is the only one that has a lookup for "davinic_nand.0" already. >> >> I think that we are going to have to add clock lookups for the >> "davinci_nand" devices as well. Although the driver doesn't do >> clk_get() explicitly, I think some function it calls does get a >> clock. I remember that we had to add a clock-ranges property to >> device tree to get the davinci_nand driver working, which is why >> I think we are going to need a clock lookup for these devices >> as well. >> > > Seems like ever since commit a8e3923ab571 ("mtd: rawnand: davinci: > don't acquire and enable clock") we no longer need to worry about the > clock entries for nand. > > Thanks, > Bart > Sounds good. If you end up touching the da850 clock lookups, you can probably drop the "davinci_nand.0" entry there.