From mboxrd@z Thu Jan 1 00:00:00 1970 From: jamie@jamieiles.com (Jamie Iles) Date: Wed, 11 Jan 2012 16:58:44 +0000 Subject: Clock API and "maximum rate" In-Reply-To: References: Message-ID: <20120111165844.GL3226@page> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Matt, On Wed, Jan 11, 2012 at 10:30:15AM -0600, Matt Sealey wrote: > Just a curious question, is there any safe way in the current API or > even by peeking a little behind the scenes to find out what the > maximum clock rate would be for a given named clock or struct clk? How about: long max = clk_round_rate(clk, ~0LU); clk_round_rate() is one of the optional API calls though. Jamie