lkml.org 
[lkml]   [2012]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2 4/9] ata/sata_mv: Remove conditional compilation of clk code
On 4/24/2012 1:56 PM, Russell King - ARM Linux wrote:
> Think about this case: if you don't have the means to control the clock
> inputs to a device (for example, you don't support the clk API on your
> CPU arch) then for the device to be functional, it must be supplied with
> all its necessary clocks. Therefore, the clock is already enabled. It
> makes sense for the clk API to stub-out to be completely transparent and
> non-error inducing to the driver.
>
> The problem comes with clk_get_rate(). I'd suggest merely returning zero
> for that in this case. If the clock rate is really required by a driver,
> then the clk API would need to be enabled.

Ok. Will do as suggested. Will include the patches i dropped earlier, where
i removed macros for clk_*().

--
viresh


\
 
 \ /
  Last update: 2012-04-24 10:35    [W:0.302 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site