From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755986Ab2KVSzB (ORCPT ); Thu, 22 Nov 2012 13:55:01 -0500 Received: from mail-oa0-f46.google.com ([209.85.219.46]:62019 "EHLO mail-oa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753861Ab2KVSy6 (ORCPT ); Thu, 22 Nov 2012 13:54:58 -0500 MIME-Version: 1.0 In-Reply-To: <20121122093033.GA5764@n2100.arm.linux.org.uk> References: <1353403339-11679-1-git-send-email-dmitry.torokhov@gmail.com> <1353403339-11679-2-git-send-email-dmitry.torokhov@gmail.com> <20121121204324.21126.99677@nucleus> <20121121205424.GA25470@core.coreip.homeip.net> <20121121223859.GQ3290@n2100.arm.linux.org.uk> <20121122021750.GD25470@core.coreip.homeip.net> <20121122093033.GA5764@n2100.arm.linux.org.uk> Date: Thu, 22 Nov 2012 15:38:52 +0530 Message-ID: Subject: Re: [PATCH 1/3] CLK: uninline clk_prepare() and clk_unprepare() From: Viresh Kumar To: Russell King - ARM Linux Cc: Dmitry Torokhov , Mike Turquette , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell, On 22 November 2012 15:00, Russell King - ARM Linux wrote: > Err, no you haven't, not with that grep. What you've found are the places > which enable this, and say "yes, I have clk_prepare". > > What HAVE_CLK_PREPARE is about though is providing a transition path between > drivers using clk_prepare() to platforms which _don't_ have a clk_prepare() > implementation - and when it's unset, it provides a default implementation. Just to make it more clear: Categories of platforms: - COMMON_CLK=y: For them it is mandatory to have clk_[un]prepare - COMMON_CLK=n: - HAVE_CLK=n: dummy implementation suggested in this patch is enough for it. Even existing implementation too. - HAVE_CLK=y: - HAVE_CLK_PREPARE=y: Platforms must have their own implementation of this routine and so a prototype is enough in clk.h - HAVE_CLK_PREPARE=n: This is the problematic place. Who will provide implementation of dummy routine here? With current patch Neither platform nor clk.h is providing that. Sorry for not reviewing it properly :( -- viresh