From: Boris Brezillon Subject: Re: [PATCH v3 15/16] ARM: marvell/dt: add crypto node to armada 370 dtsi Date: Tue, 26 May 2015 11:36:30 +0200 Message-ID: <20150526113630.754782d8@bbrezillon> References: <1432301642-11470-1-git-send-email-boris.brezillon@free-electrons.com> <1432301642-11470-16-git-send-email-boris.brezillon@free-electrons.com> <556340C4.5090208@free-electrons.com> <20150526110345.663efb51@bbrezillon> <20150526111041.1f8fc385@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Gregory CLEMENT , Arnaud Ebalard , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, Jason Cooper , Sebastian Hesselbarth , Andrew Lunn , Tawfik Bayouk , Lior Amsalem , Nadav Haklai , Eran Ben-Avi , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org To: Thomas Petazzoni Return-path: Received: from [37.187.137.238] ([37.187.137.238]:49866 "EHLO mail.free-electrons.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752343AbbEZJgz (ORCPT ); Tue, 26 May 2015 05:36:55 -0400 In-Reply-To: <20150526111041.1f8fc385@free-electrons.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Tue, 26 May 2015 11:10:41 +0200 Thomas Petazzoni wrote: > Dear Boris Brezillon, > > On Tue, 26 May 2015 11:03:45 +0200, Boris Brezillon wrote: > > > > There is no clocks property. After a quick look on the datasheet, indeed I didn't > > > find any clock which match the CESA. In this case you should update the binding > > > documentation by adding that the clock is optional for armada-370-crypto. > > > > Hm, actually the clock is defined in Marvell's LSP, but not described > > in the datasheet. Which one should I trust :-) ? > > I'd say: trust the reality. Declare the clock in the clock driver, but > don't take a reference to it from your crypto driver. The kernel will > disable it at the end of the boot. Check if crypto still works or not, > and you'll get your answer :-) Okay, you got me: I was to lazy to test that :-). Anyway, I just did it, and apparently this clock is mandatory (the platform hangs when launching crypto requests if the clock is not referenced by the crypto device). I'll send a patch adding this clock to the armada-370 clock driver and I'll fix the dtsi accordingly. Thanks, Boris > > Thomas -- Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com