Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6166975imm; Wed, 27 Jun 2018 03:26:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK0NxD9NeOKP6P+4GXwW9ZsZVGdr27P7wFCttvD2ccjXV0x7eNnyWqUI46WixziKUHTejX3 X-Received: by 2002:a63:b95c:: with SMTP id v28-v6mr4617573pgo.162.1530095162801; Wed, 27 Jun 2018 03:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530095162; cv=none; d=google.com; s=arc-20160816; b=lLLJ37/TLdDTwn84qYqTO69c/1hGkkE3FmdVRlK+M1XgcZYp0PmPUYnUmtF1PqzRhN gg2ZylCZZAKiVyt/BlQWHTOdMHlFXDjuJLNhPyKn/hGR56uRFDHZ6IvBcxYzNzq0JycZ jdPuLPocyRCbfvPTPfPq4+THmw5GB3bceQCHYfevnzMROP7qlUEFNew7oLB0/90Y9zsh hNiaycuhz4fVtcwNOrhx4zrrKnQPBtpbHf1LldN3P3r4llAo1QAdiM6EWhpO5DTAS1od Cwc+s43EA2QSGCHMaNkkgiRQciLKTMFRDtJDFUPpwepDm1xZXKt/FPbwkRU+i/scz6pi PI+w== 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=vBGbRqIfqdQLu1yU0Nn3bra1hOwBUucZBGENRyMmwZ4=; b=cOnE+zdekZ7D81ORAxptWJlsflT41kXrI4ZcyOsM3Uq7+4/2ciPQO16hMcckpIdj5K cTxzQJg2NVEC8b10XSR7IMbhazfzlixfhM/ZbpGNjhI/sWVqS5bcs6Y8RLI9Wb8ZyOeS FCzSSTr9dvWRgI7vdExHs5zRMmgOBWF8FLF8AqjYT85moMORwvDK+WdXnlxaY0zoJ2dc yMzw3U/0g0Vh//ksV1lE97SXq1HMoYWBKMmbTsggKB7gHJ0Wmhn87DcyJHKZF2Q6hxtl +JvS0kJNGqzjS9nVSRBdPIElGAUbknZvG1njeJh3xUEKN0HaLhuJtPlrscVrBMV5dmUN f5uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=y7tb6jsE; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13-v6si1887948pge.255.2018.06.27.03.25.45; Wed, 27 Jun 2018 03:26:02 -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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=y7tb6jsE; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753501AbeF0KMf (ORCPT + 99 others); Wed, 27 Jun 2018 06:12:35 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:53012 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753406AbeF0KMd (ORCPT ); Wed, 27 Jun 2018 06:12:33 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id w5RABUN2033026; Wed, 27 Jun 2018 05:11:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1530094290; bh=vBGbRqIfqdQLu1yU0Nn3bra1hOwBUucZBGENRyMmwZ4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=y7tb6jsEdfzpOqyyrtyTAufcoqFDnnytQBwzWIwY9OGQFQppxDkVq2yFea3eAye4A lx4LtTvns1VnoJ45tCT4Eltho81K+kOSSK98NoPcxhkPbTy5CNquFnEZBAWFcD4sOt gLwForMV1kYDQ5Tvl6yTsTJmY71pk9ZPD22GYwmI= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5RABUAR021068; Wed, 27 Jun 2018 05:11:30 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 27 Jun 2018 05:11:30 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 27 Jun 2018 05:11:30 -0500 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5RABO9b026842; Wed, 27 Jun 2018 05:11:25 -0500 Subject: Re: [PATCH v2 06/13] ARM: davinci: omapl138-hawk: add aemif & nand support To: Bartosz Golaszewski , Kevin Hilman , Russell King , David Lechner , Michael Turquette , Stephen Boyd CC: , , , Bartosz Golaszewski References: <20180626092537.6737-1-brgl@bgdev.pl> <20180626092537.6737-7-brgl@bgdev.pl> From: Sekhar Nori Message-ID: <11b55553-435b-c363-9194-aebf47302198@ti.com> Date: Wed, 27 Jun 2018 15:41:24 +0530 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: <20180626092537.6737-7-brgl@bgdev.pl> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 26 June 2018 02:55 PM, Bartosz Golaszewski wrote: > arch/arm/mach-davinci/board-omapl138-hawk.c | 132 ++++++++++++++++++++ > 1 file changed, 132 insertions(+) > > diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c > index 466e87b24e9a..8d8e3165a45c 100644 > --- a/arch/arm/mach-davinci/board-omapl138-hawk.c > +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c > @@ -16,6 +16,11 @@ > #include > #include > #include > +#include > +#include > +#include can you keep this (roughly) sorted by moving these above? > +#include > +#include > #include > > #include > @@ -166,6 +171,129 @@ static __init void omapl138_hawk_mmc_init(void) > gpiod_remove_lookup_table(&mmc_gpios_table); > } > > +static struct platform_device omapl138_hawk_aemif_devices[] = { > + { > + .name = "davinci_nand", > + .id = 1, This can be -1 now since you got "mtd: rawnand: davinci: stop using pdev->id as chipselect" merged. We cannot change for older platforms, but this is fresh support. > + .dev = { > + .platform_data = &omapl138_hawk_nandflash_data, > + }, > + .resource = omapl138_hawk_nandflash_resource, > + .num_resources = ARRAY_SIZE(omapl138_hawk_nandflash_resource), > + } > +}; Thanks, Sekhar