[lkml]   [2010]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: gpiolib and sleeping gpios

    --- On Wed, 6/23/10, Jani Nikula <> wrote:

    > Hi David -
    > Part of the reason why such drivers haven't been fixed
    > might be that the runtime warnings are only issued if DEBUG
    > is defined in gpiolib.c:

    A very good point. those cansleep() warnings
    should perhaps be issued more consistently.

    (Other warnings are safer to skip.)

    I think the normal case for the GPIO calls is
    the spinlock-safe code path, so I'd probably
    ack a patch which incurs the extra costs only
    for gpio chips that are already sleeping.

    (The desire to trim costs for bitbanging is
    not going to affect gpio chips accesssed over
    I2C or SPI ... ;)

    - Dave

     \ /
      Last update: 2010-06-23 14:43    [W:0.021 / U:91.876 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site