[lkml]   [2012]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 3/3] serial: 8250: Add a wakeup_capable module param
    Hi Alan,

    On Wed, Jan 18, 2012 at 2:12 PM, Alan Cox <> wrote:
    >> Let me provide a bit of context. The serial_core code seems to be the
    >> only place in the kernel that does this:
    >>               device_init_wakeup(tty_dev, 1);
    >>               device_set_wakeup_enable(tty_dev, 0);
    >> The first call makes the device wakeup capable and enables wakeup, The
    >> second call disabled wakeup.
    >> I assume we can't and shouldn't change device_init_wakeup() . We could
    >> add a call like device_init_wakeup_disabled() which makes the device
    >> wakeup capable but does not actually enable it. Does that work?
    > Is that not
    >        device_init_wakeup(tty_dev, 0)
    > or am I missing something ?

    Bearing in mind that I know very little about this, I think
    serial_core wants to have the device wakeup capable in any case, but
    not actually enable wakeup on the device until requested. It seems
    that drivers rely on that behaviour too.

    device_init_wakeup(tty_dev, 0) calls device_set_wakeup_capable(dev,
    false) which I think is not what we want.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2012-01-18 23:21    [W:0.023 / U:2.996 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site