lkml.org 
[lkml]   [2006]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 21/24] atkbd: dont lose keymap settings when reconnecting keyboard
    Input: atkbd - don't lose keymap settings when reconnecting keyboard

    Call serio_reconnect() instead of serio_rescan() when detecting that
    a new keyboard was plugged in. This should help KVM uses losing custom
    keymap settings when switching between boxes.

    Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
    ---

    drivers/input/keyboard/atkbd.c | 2 +-
    1 files changed, 1 insertion(+), 1 deletion(-)

    Index: work/drivers/input/keyboard/atkbd.c
    ===================================================================
    --- work.orig/drivers/input/keyboard/atkbd.c
    +++ work/drivers/input/keyboard/atkbd.c
    @@ -321,7 +321,7 @@ static irqreturn_t atkbd_interrupt(struc
    switch (code) {
    case ATKBD_RET_BAT:
    atkbd->enabled = 0;
    - serio_rescan(atkbd->ps2dev.serio);
    + serio_reconnect(atkbd->ps2dev.serio);
    goto out;
    case ATKBD_RET_EMUL0:
    atkbd->emul = 1;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-01-07 20:12    [W:2.713 / U:0.492 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site