Received: by 10.223.176.5 with SMTP id f5csp645056wra; Tue, 6 Feb 2018 05:09:43 -0800 (PST) X-Google-Smtp-Source: AH8x224zkm3eK/4dlhzQ10b7pKOxB2VvUtw/oocdVGjL5gB0idr7uwnpwUIslppRsCxR8pbSmMME X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr2355487pld.39.1517922583148; Tue, 06 Feb 2018 05:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517922583; cv=none; d=google.com; s=arc-20160816; b=YZnRlQ7rktilbc1X1c4B6bECZtMEXtg/WJ09ilhjqPtB0HalV3B0s8Q7ARxNJ81hrS HVXoR/OfE6NNiIBoyNd6qfqpH/gV6+M28qX+u3Hs9+W5gdVqrlADPuTkxEv2oEr5oaMV DE+8nOtvUzeed2UAjqIEon4RDNXhoJsiZI8tCdeREAGYO4ZgmvWTe1WY3V7b4kIbmLSm Y3WcjTFlEatPmjIPWxIjOFOBOPi5cN1OpY06g5J+Y0CFMGM2iQfssXoHy3BLVbJygsTu DLJYDSraKjU6CgrW/rjn/urvpptrQPEHQLfzHoYR/Me+YRr3pXZKjRtupQTeFesmyXVJ xFmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=PqQl35I7USV3kMUMOkJzGqX/7UmbBAVAQE5JtfCI3MY=; b=OQUZLayl+H3LcYGu4BClGABSX6q0ujDR26GQ7Lx8rIZeQE0XvP898av0J/Glxy4j8S eoezrAYVbMAHJFKPLpySToZp1sHSmrkCAJkviQJJFOH/SKsz5BShC3vYhFa83GWv/lA5 nicjVBagfzIdrq1Ko51Keqf2soqzkRAmKD0CVaOK0oBLChhC2WI8AaGVKUxzpmaG3mpx Trz8OFeeoF1AlFVquNHg1eDEi2ZHF6wNSTmon/ya7IXIC3go+F/NM9899wlXio0tt8r+ Zq4xrKIh5nmsKttsSymIKFk8nF8B1yRrIOltIqmEHI2csk9KXFwALPVql0tBT/JQjWu4 lFIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=n3f8Mw7q; 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 r10si5898132pfe.402.2018.02.06.05.09.28; Tue, 06 Feb 2018 05:09:43 -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=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=n3f8Mw7q; 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 S1752807AbeBFNJE (ORCPT + 99 others); Tue, 6 Feb 2018 08:09:04 -0500 Received: from mail-ua0-f195.google.com ([209.85.217.195]:40177 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752246AbeBFNJA (ORCPT ); Tue, 6 Feb 2018 08:09:00 -0500 Received: by mail-ua0-f195.google.com with SMTP id t6so1112037ual.7 for ; Tue, 06 Feb 2018 05:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PqQl35I7USV3kMUMOkJzGqX/7UmbBAVAQE5JtfCI3MY=; b=n3f8Mw7q0KUoBfpUrekxVNlbRCAhh+g4kxucOYMuVlI/VlwVLbmlny0Ip/yCxZDRsb xaL1BHKS6Mlb6d4ovjwuO2aVi3meqbqOcwC+QiI/B1pUO1xH4PWj5LAGj7SXrWkpqvVP pBzZ8JjcyHP8IMmGiEz2V+sUP/ZATFfI0QlbipeNUMJYcznY5dqn7Tb86dfWfUmE/ITC fE5Hv4V2T485hXf9UjUnLf4soPij06ecDRJQwc0DOI9OBQlYbpBbph3qo+g349xqYir2 AsLFjxxMO7jSTuVsI/sdmXdOPI+jxRimTdAcRNubeONGPTBRnMlHWKW7bKL8XRhcmh53 yU+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PqQl35I7USV3kMUMOkJzGqX/7UmbBAVAQE5JtfCI3MY=; b=s6m+UkUcJwEWiBznPL5Mog0dPYSD0Vm+Ze4R3opZaaeE+89Zi/UeNG1C/audJ9scod un9Z1X7YNYdUwj+LabdTuPry7JeNEtv7cuIqA23CSf+g2AFZLRr5200NUf7Z9EcFamGb 42kf1StKhDkKj4hfBPlFzPm2NxvmiLbueEnLy7HEf123a3MYcIfw7YUKYBNsAHVOyPK6 IVNEW8U8B9UaNJWY4eRi2/MSQxOZ3XuebPjacJAJxdGZPzRztJ7K1L0nyj9h4lJ2Lp1r rGkLGAboYJbiWAzqcagFg+K/S8eGceev4nR7y52kgdiVv/ULTePhmKWTpNOydlJjEHSQ W5jQ== X-Gm-Message-State: APf1xPBNn19fp/T2LV/ElRTRRU3fcVAbfm2wd8mFvn151sn5xdhaXGYw G80ZF6IUDqNSB80Yg55lVwBKlx8evKXXIQqXHzNbiA== X-Received: by 10.159.53.164 with SMTP id t33mr2238625uad.72.1517922539314; Tue, 06 Feb 2018 05:08:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.60.24 with HTTP; Tue, 6 Feb 2018 05:08:58 -0800 (PST) In-Reply-To: <3f171f6a-bcea-65ec-d56d-f6ae24660f34@ti.com> References: <20180205155222.22189-1-brgl@bgdev.pl> <3f171f6a-bcea-65ec-d56d-f6ae24660f34@ti.com> From: Bartosz Golaszewski Date: Tue, 6 Feb 2018 14:08:58 +0100 Message-ID: Subject: Re: [PATCH] ARM: dts: da850-evm: add clock properties to the nand node To: Sekhar Nori Cc: Bartosz Golaszewski , Kevin Hilman , Rob Herring , Mark Rutland , Russell King , David Lechner , arm-soc , linux-devicetree , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-06 12:07 GMT+01:00 Sekhar Nori : > On Monday 05 February 2018 09:22 PM, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> Make nand work with the common clock framework by specifying which >> clock should be used and what name to look up. >> >> Signed-off-by: Bartosz Golaszewski >> --- >> arch/arm/boot/dts/da850-evm.dts | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts >> index a86a8a1816f2..2602ad8e99ee 100644 >> --- a/arch/arm/boot/dts/da850-evm.dts >> +++ b/arch/arm/boot/dts/da850-evm.dts >> @@ -296,6 +296,9 @@ >> reg = <0 0x02000000 0x02000000 >> 1 0x00000000 0x00008000>; >> >> + clocks = <&psc0 3>; >> + clock-names = "aemif"; > > Looks like this is being added only to satisfy the devm_clk_get() call > in nand_davinci_probe() which I think is superfluous since we also > enable the same clock in aemif_probe(). > > Perhaps the better solution is to drip the clk code in > drivers/mtd/nand/davinci_nand.c and shift legacy code to start using > drivers/memory/aemif.c as well? This way we can also drop > arch/arm/mach-davinci/aemif.c > > Thanks, > Sekhar Yes, this sounds good, but I think we should leave it for later as an additional improvement, once everything else is in place. I think these patches should be applied together with David's series in order to not break the support on davinci boards and the aemif work would go in later as a follow-up. How about that? Also: I don't have any keystone board to test whether such changes don't break the nand support there. Would you be able to test this? Thanks, Bartosz