[lkml]   [2008]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RESEND] [PATCH -next 2/2] acpi,rfkill,backlight: comapl-laptop update - use rfkill switch subsystem
    On Wednesday 09 July 2008, Cezary Jackiewicz wrote:
    > Dnia 2008-07-09, o godz. 23:33:01
    > Ivo van Doorn <> napisał(a):
    > > On Wednesday 09 July 2008, Cezary Jackiewicz wrote:
    > > > From: Cezary Jackiewicz <>
    > > >
    > > > Remove unnecessary attributes, use rfkill switch subsystem.
    > >
    > > I'm missing a call to rfkill_force_state() to inform the rfkill subsystem that
    > > the key has been toggled. This function should be called when the hardware
    > > has raised the interrupt about the pressed event, or when the function
    > > which polls the register notices the state change.
    > >
    > > As the patch works now, it means that the driver will only listen to
    > > events coming from rfkill and it doen't provide any updates itself.
    > >
    > > Ivo
    > Does calling rfkill_force_state () is mandatory? This driver implement
    > get_state() hook, @state is always up-to-date.

    It is not mandatory if you are writing rfkill support for a driver that does not
    come with a rfkill switch. Such drivers can make use of the rfkill events produced
    by the hardware which does have such a switch.

    When the hardware does have the rfkill switch, then yes rfkill_force_state() is mandatory.
    The get_state() callback function is optional, and allows rfkill to differentiate
    between soft and hardblock.

    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: 2008-07-09 23:51    [W:0.032 / U:14.936 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site