lkml.org 
[lkml]   [2009]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH E 10/14] OMAP clock: support "dry run" rate and parent changes
    Date
    On Sunday 08 February 2009, Russell King - ARM Linux wrote:
    > A far better way to approach this would be to split the set_rate/recalc
    > functionality into two parts:
    >
    > 1. a method which returns the both the new clock rate and the hardware
    > programming information
    > 2. a method to commit the hardware programming information to the registers

    Much simpler to just pass a "commit" flag and not
    try to come up with some generic way to represent
    "hardware programming information"; in general that
    will be very different between clocks.

    Then clk_round_rate() passes "false" for commit,
    while clk_set_rate() passes "true". And in both
    cases the value returned is the rate, or negative
    errno to indicate a fault.

    - Dave


    \
     
     \ /
      Last update: 2009-02-08 20:51    [W:5.048 / U:1.184 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site