From: Qunqin Zhao Date: Mon, 19 May 2025 18:44:02 +0000 (-0700) Subject: Input: atkbd - do not reset keyboard by default on Loongson X-Git-Tag: v6.16-rc1~80^2^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21597378dd5123a4d547c014b7d953a88575c910;p=thirdparty%2Fkernel%2Flinux.git Input: atkbd - do not reset keyboard by default on Loongson The keyboard is properly initialized by the firmware on Loongson platform, so full reset of the keyboard is not needed. Switch the default to avoid performing full reset of the keyboard. Signed-off-by: Qunqin Zhao Reviewed-by: Huacai Chen Link: https://lore.kernel.org/r/20250401094154.11527-1-zhaoqunqin@loongson.cn Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c index adf0f311996c9..3ff2fcf05ad5e 100644 --- a/drivers/input/keyboard/atkbd.c +++ b/drivers/input/keyboard/atkbd.c @@ -37,7 +37,7 @@ static int atkbd_set = 2; module_param_named(set, atkbd_set, int, 0); MODULE_PARM_DESC(set, "Select keyboard code set (2 = default, 3 = PS/2 native)"); -#if defined(__i386__) || defined(__x86_64__) || defined(__hppa__) +#if defined(__i386__) || defined(__x86_64__) || defined(__hppa__) || defined(__loongarch__) static bool atkbd_reset; #else static bool atkbd_reset = true;