Received: by 10.223.176.5 with SMTP id f5csp528251wra; Tue, 6 Feb 2018 03:10:13 -0800 (PST) X-Google-Smtp-Source: AH8x224Z5vtp9RFSE9Bi79wNLog+d0+cApqcI8b8UvAyZ9RCR3jVxspYWUsOwoZ4AvGUlt8vI4YQ X-Received: by 10.101.102.73 with SMTP id z9mr1645098pgv.448.1517915413220; Tue, 06 Feb 2018 03:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517915413; cv=none; d=google.com; s=arc-20160816; b=PhbFANTHE+z+PadosTdY0IS5LCp8HwykMP/uQVxJyZLAKGu3VbHaHQ4LCsI5i4iWtC JAZXIWAKBE6xwxOCHH6soWgKBaw7qFqhe86SmWlRc+8kT82x19jdwYHer4v14OqOvlHk /Ho+nNNqFTJUrKO5niLy8zSbLVvQMBYtVt5CjvWQVdZmrJ6W7o+/BeJjydNP0asPK+ie D4xQcK3U2NXaD3wBmXLgmOoPQ1UEc0PjslQh2ONj3vDmvYVbgOT/CaoCH+J0BQhHweAs 2jClmYL4z2uNqAGOq/bhSdrMxNlJteHxD1olmiuIcPPGjGaN5pUzwjHukEwM85LBjKmn T4Ug== 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=t4Dw8opAnxskxhSCkRh5cv1TgV4VPkTdDMFJJAZ0/uU=; b=VaoDmrS7DGgbnbHe3sHAleXw8+/z1H8ZYAJxnMQAbImZV8pc0hbuV71JNQcdKG74KG Y63aICJKtX72y6K4r18nOzvxm4wqVMyhD9bHo9VsinqY0FSfvhQWQhNa5Vp2v7qYktTN 2QMlqO0sw5ACjIsGseP1Kpi/yv+4S3ncus7oiZHsuTIW/61SkXWvE/6J48tY8DUspRXJ QygKMqOihA2tthv0QVVAyZcolL7AJhJyNGUSd98zgG9OCOeAsb4reWOhFQpMnwcqofCF AV2TZX68gcuGWGotI6NjsxHiAPY9AmdzTEai5wUnRk31dP7YprmwSJx2P41vuxabhsRn FLxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XtwLCf6n; 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 v5si1609966pfl.11.2018.02.06.03.09.58; Tue, 06 Feb 2018 03:10:13 -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=@ti.com header.s=ti-com-17Q1 header.b=XtwLCf6n; 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 S1752802AbeBFLIz (ORCPT + 99 others); Tue, 6 Feb 2018 06:08:55 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:20702 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752246AbeBFLIt (ORCPT ); Tue, 6 Feb 2018 06:08:49 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w16B7TuJ001439; Tue, 6 Feb 2018 05:07:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517915249; bh=co6wJEY9CgYkvfPR4VqXaTx59La5vlbnqMrSl4k7PsE=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=XtwLCf6ndMqcmmcKdRs4JzyAyYdzSFEuQjd2b80W0guXP8j0sJ64Vr7n1Dstiv9aR C4habR3yYYLqP8kdzmGt/4W3FPrBi5yil/DT8/fBsMlIXO+p9ZkVOSrusEsJ2+NUTW kQhWfNH+LyHTL+f2K1K5JXTuOaVM6/dlPC5s7t9Y= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w16B7TrL023026; Tue, 6 Feb 2018 05:07:29 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 6 Feb 2018 05:07:29 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 6 Feb 2018 05:07:29 -0600 Received: from [172.24.190.171] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w16B7JAC032039; Tue, 6 Feb 2018 05:07:24 -0600 Subject: Re: [PATCH] ARM: dts: da850-evm: add clock properties to the nand node To: Bartosz Golaszewski , Kevin Hilman , Rob Herring , Mark Rutland , Russell King , David Lechner CC: , , , Bartosz Golaszewski References: <20180205155222.22189-1-brgl@bgdev.pl> From: Sekhar Nori Message-ID: <3f171f6a-bcea-65ec-d56d-f6ae24660f34@ti.com> Date: Tue, 6 Feb 2018 16:37:19 +0530 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: <20180205155222.22189-1-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 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