lkml.org 
[lkml]   [2015]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2] clockevents: Introduce mode specific callbacks
Date
On Friday, February 13, 2015 11:01:18 AM Viresh Kumar wrote:
> On 13 February 2015 at 10:11, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > On Friday, February 13, 2015 08:54:56 AM Viresh Kumar wrote:
> >> It is not possible for the clockevents core to know which modes (other than
> >> those with a corresponding feature flag) are supported by a particular
> >> implementation. And drivers are expected to handle transition to all modes
> >> elegantly, as ->set_mode() would be issued for them unconditionally.
> >>
> >> Now, adding support for a new mode complicates things a bit if we want to use
> >> the legacy ->set_mode() callback. We need to closely review all clockevents
> >> drivers to see if they would break on addition of a new mode. And after such
> >> reviews, it is found that we have to do non-trivial changes to most of the
> >> drivers [1].
> >>
> >> Introduce mode-specific set_mode_*() callbacks, some of which the drivers may or
> >> may not implement. A missing callback would clearly convey the message that the
> >> corresponding mode isn't supported.
> >
> > This is not going to fly AFAICS if you don't say what exacly you need it for.
>
> For this: https://lkml.org/lkml/2014/5/9/508

OK, I see.


--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.


\
 
 \ /
  Last update: 2015-02-13 15:41    [W:0.039 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site