Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755121Ab1BDAas (ORCPT ); Thu, 3 Feb 2011 19:30:48 -0500 Received: from mail-gw0-f46.google.com ([74.125.83.46]:54151 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753259Ab1BDAar convert rfc822-to-8bit (ORCPT ); Thu, 3 Feb 2011 19:30:47 -0500 MIME-Version: 1.0 In-Reply-To: <20110203124521.GK9810@sirena.org.uk> References: <1296701663-12168-1-git-send-email-arve@android.com> <20110203124521.GK9810@sirena.org.uk> Date: Thu, 3 Feb 2011 16:30:46 -0800 Message-ID: Subject: Re: [PATCH 1/5] ARM: etm: Don't require clock control From: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= To: Mark Brown Cc: linux-arm-kernel@lists.infradead.org, Russell King , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Alexander Shishkin , Jason Wessel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1129 Lines: 26 On Thu, Feb 3, 2011 at 4:45 AM, Mark Brown wrote: > On Wed, Feb 02, 2011 at 06:54:19PM -0800, Arve Hj??nnev??g wrote: >> If clk_get fail, assume the etb does not need a separate clock. >> >> Signed-off-by: Arve Hj??nnev??g > > Would it not be cleaner for the affected platforms to ensure that > clk_get() does the right thing here, for example by returning a dummy > clock? ?Otherwise we'll just silently carry on if we can't get a clock > we were supposed to which doesn't seem ideal. > This clock seem to be an omap specific virtual clock that switches the clock source of the etb. It is not used to enable the clock when the etb is in use, and it does not seem to have a failure case other than not existing. So, I don't know that requiring this clock would cause fewer problems than making it optional. -- Arve Hj?nnev?g -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/