lkml.org 
[lkml]   [2010]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [linux-pm] [PATCH 0/8] Suspend block api (version 8)
    ext Florian Mickler wrote:

    >
    > Converting a driver to using any constraint-API would require analysing
    > what makes a driver refuse suspending in the old suspend handler and
    > then specify any "no suspend" (or whatever) constraint before those
    > conditions arise and clearing of the constraints when it is no longer critical.
    > (Much work.)
    >

    That's not really true.
    Nothing prevents using from the beginning a sane approach where drivers
    are required to specify constraints.

    The way it has been done for the N900 was to let driver developers
    specify _very_ conservative constraints, during the conversion phase.

    Then each driver has been optimized.

    If you have as requirement for driver developers that their driver must
    be working properly when compiled as module, it is possible to test the
    system with a minimalistic kernel which enters the lowest power state as
    soon as possible, plus only those modules that are being optimized.

    This allows also to identify parasitic drivers, which fail to apply the
    proper constraint and instead rely on some other driver to keep the
    system alive.

    igor


    \
     
     \ /
      Last update: 2010-05-27 14:07    [W:4.425 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site