Received: by 10.223.176.5 with SMTP id f5csp971902wra; Tue, 6 Feb 2018 10:18:58 -0800 (PST) X-Google-Smtp-Source: AH8x227OamvzbNVNdMU6ipiRqgRSay8TDOuniELMEOrZi6RxbsrRnGm9MU+41eaMavOYM26H+3iA X-Received: by 10.98.178.8 with SMTP id x8mr3290842pfe.57.1517941138134; Tue, 06 Feb 2018 10:18:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517941138; cv=none; d=google.com; s=arc-20160816; b=cA6gExgTriRS6ef6QJ1IebYZpH6UR97RJoU51y7YR6EFy1Eub1oWshTyn5MhVYDVic 2MS2h2X3brQWheaQFKgQ0ETc0EleghGcEHbavOeFnJ0EwSEOgQ+Hvo3pF4njUh7/qKa2 j91OkDZG1HL1+SkUkKPSi4KqL193OGpYozVTp3lI92msmYG1Jh/x3sS1Hy8MzXNyFSpv 3q2XDTfhaWfAGoq6iHfdEeHy/2DUA7005mhiuy1KLLFkmVVtPw2Oz5xZlf/q1SJaVkmX nbWdkyhHBKhv51BjzBGfq07genqJVrbuxMvcNnNsQ6uNjbeVwp7x7B3iLFm+z0Mo1iZu Fufg== 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=8mgCIuWXthN4uDhnTSdjcMfYp/wV/qnhX2bPnjtC6xU=; b=fBburKNH10g+AvENg7Gk0uvbb4OErsVPHjrzOVzSURHTvJjShGQ7lDfYvOc074jwHv o1p3Wem6BDvNke9KStIlH7g9aArImV9RGtRLqi9txQH2sx+kw6vLcHXXssN8kQiUAZ/u ep4V0yCSMW2P2+A4WEIflkH3ZJNFsH096vVYZdrbpdBPhDuslV8PoVxaiv2o26rXYFkx 49Hih7DeO9quq7KqQkrq9rLlKJYzbyivMz2ZvWn5nuMKgc/BY6VutmvJbLAAH1Hjr8zI guplOaHqGfJan2u+Cd5a/6PJZ2JICNK2uxckeNTaaMVf5aIeBO33eiMNimmEHiXIFBFt Rvpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=fIrQaVek; 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 m63-v6si2073475pld.753.2018.02.06.10.18.43; Tue, 06 Feb 2018 10:18:58 -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=fIrQaVek; 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 S1752852AbeBFSQw (ORCPT + 99 others); Tue, 6 Feb 2018 13:16:52 -0500 Received: from vern.gendns.com ([206.190.152.46]:55196 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752536AbeBFSQp (ORCPT ); Tue, 6 Feb 2018 13:16:45 -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=8mgCIuWXthN4uDhnTSdjcMfYp/wV/qnhX2bPnjtC6xU=; b=fIrQaVek7MsYbix3FiJCDGr1k7 UBsejsNfpRh5Z+njyNyJfgMAZAhp6oV+jXVsehmy8Boe4xGtF1mmFJMOQVnmGI6UDbUMQrkZtCZgo TXF3na3kcMlS1H4TnS6YyevtFjTRZjRZl1gBIuuUXWgmzfYNiCEj9lQ8NPrCVwtbNtp+HAGCRo9kO nTFbZwj9mHH7IAPOLnBPXmPv+Gr3jl+HPhJ9XVVrS93yQcETXGmr7AKaj2k7/T2Fb7VlsB9shXRKa pgLUNyMRBaheSXvsKoXldglThsuHLmh+wI4+Ya2JO2q0++aj7+DKObEyF6RLOn6ljljifxY2DqDzr EZ17b1ng==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:59334 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 1ej7mT-004FIL-FM; Tue, 06 Feb 2018 13:15:45 -0500 Subject: Re: [PATCH] ARM: dts: da850-evm: add clock properties to the nand node To: Sekhar Nori , Bartosz Golaszewski Cc: Bartosz Golaszewski , Kevin Hilman , Rob Herring , Mark Rutland , Russell King , arm-soc , linux-devicetree , LKML References: <20180205155222.22189-1-brgl@bgdev.pl> <3f171f6a-bcea-65ec-d56d-f6ae24660f34@ti.com> <54dbdb98-e0e4-c8c9-fec4-2f050745d9be@ti.com> From: David Lechner Message-ID: <794024f3-f87a-58ed-2722-a4a2d09df3ce@lechnology.com> Date: Tue, 6 Feb 2018 12:16:48 -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: <54dbdb98-e0e4-c8c9-fec4-2f050745d9be@ti.com> 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/06/2018 07:51 AM, Sekhar Nori wrote: > On Tuesday 06 February 2018 06:38 PM, Bartosz Golaszewski wrote: >> 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? > > No, I dont think we should add temporary hacks to DT to work around > driver issues (I do think its a hack since the clock belongs to aemif > module not NAND flash). > > An easier driver hack might be to not treat devm_clk_get() failure in > davinci_nand.c as catastrophic. It will safely fail in DT case and we > should get the clock in legacy boot case. > > I think we are looking at a driver update dependency anyway. It looks like keystone.dtsi is using the clock-ranges property in the aemif node to pass the clock to child nodes. Could we not do the same in da850.dtsi? > >> >> 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? > > Yes, I have access to those boards. > > Thanks, > Sekhar >