lkml.org 
[lkml]   [2022]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v1 0/5] power: domain: Add driver for a PM domain provider which controls
    On Thu, Jun 9, 2022 at 5:10 PM Max Krummenacher <max.oss.09@gmail.com> wrote:

    > This series adds a PM domain provider driver which enables/disables
    > a regulator to control its power state.

    Actually, we did this on the U8500 in 2011.

    IIRC this led to problems because we had to invent "atomic regulators"
    because regulators use kernel abstractions that assume slowpath
    (process context) and power domains does not, i.e. they execute in
    fastpath, such as an interrupt handler.

    The atomic regulator was a subset of regulator that only handled
    regulators that would result in something like an atomic register write.

    In the end it was not worth trying to upstream this approach, and
    as I remember it, Ulf Hansson intended to let the power domains poke
    these registers directly, which was easier. (It's on Ulfs TODO list to
    actually implement this, hehe.)

    Yours,
    Linus Walleij

    \
     
     \ /
      Last update: 2022-06-16 14:51    [W:4.112 / U:0.660 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site