From: Dmitry Torokhov Date: Fri, 6 Jan 2006 04:00:13 +0000 (-0500) Subject: Input: atkbd - don't lose keymap settings when reconnecting keyboard X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dbc26344350dff2932902a7723a4e89e71752803;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c index a0256f8de8ef..ffacf6eca5f5 100644 --- a/drivers/input/keyboard/atkbd.c +++ b/drivers/input/keyboard/atkbd.c @@ -321,7 +321,7 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data, 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;