Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3731256imm; Mon, 8 Oct 2018 08:38:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV63wU1GiudWPnJyzJ/O428QdGaCgW3l24dPZeRd2EkKMoix55HcMJUPrQWgmH/rr9BUhPOyP X-Received: by 2002:a62:f20f:: with SMTP id m15-v6mr25338374pfh.244.1539013118754; Mon, 08 Oct 2018 08:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539013118; cv=none; d=google.com; s=arc-20160816; b=X/e0IWaCpUlnoBftsk4Efg45uX/1PXKz6NOaRCqQlYxS3/Rv3uHpfPS+ZiLkEovOyZ 8iMjmqSlwO81FFTH4Dh8Qa1AOaxJnVu04YVR2b5+uKm5QJFG1Z2nJ6fuWOVJXPUko34D gWXoKNpynQDeER0vH6XVfCClhfNA1vd+WvzTb5lOjchNWytxempLJ5V2niMM6yWrc7nf 03TyO+NAQ2mOtnMN5uR6ZyzNvz3aepmMEVdkL3EGVPd26t0yupB2CifKT4ahborxP/0v n40rEY/pqOLdMof8zFVjHuc7kzR3bWLe47dGQ7QW+IplzGw/u6nYam2Kx/xOrepJpFkO sv7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=n99R5/OS6jIwOv497GfkePRxixpnc7YBnxoYKB62gng=; b=yJpwqTmd/KH2N2PQ5WZxilw8nyWOqbQ1MpFvnY00CtDxMqKXB3h3zUNnN6+/D8l7of DLyr7I6uIiiWKzMkO9YrKHdFGRCvxFbobPMRxcOsx14QM6K3kgcSOC2uKAjDSSqHWo3S QCfRPRnLVJSe5is/bK0ZNpX2wJDh0NqseGOprXnGaNXvlEq432Ut4Orh1oDVwnFI56Ji NbxJxVVrvrx0J7V94MK8htUlqEaw9H/qTIeyXzXQNTkIimStJd8HcMiMiekC+hpu9RI+ kR/dNEIEZjA/3EZrs2VoxvFYpdn+FUiDITiqZ6YiwhtMjdKFfOpQCg9Req2GKbjMpOO7 vIDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mIb+uZJR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 202-v6si19551762pfz.227.2018.10.08.08.38.23; Mon, 08 Oct 2018 08:38:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mIb+uZJR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727711AbeJHWtX (ORCPT + 99 others); Mon, 8 Oct 2018 18:49:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:56324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbeJHWiE (ORCPT ); Mon, 8 Oct 2018 18:38:04 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E8673214FF; Mon, 8 Oct 2018 15:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539012349; bh=S34kyZAKiyhY+RnYNCLvJcaVMoEV3jmaQ6l+KeZQG2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mIb+uZJReZLqL1uQ63+GRprCWB88PJOXOBzOti55TGsIzpML6FnbZzymNtYtcQF5/ 87+BcooCj9oYc7ln+xrKpliUB/jsn1pflxe3izvIdbaTmP2BPZvyWl/Oj3Tulx6Gs/ rj5fH7+g1xsBiKzvaJkjMgXekA4zhi0KCFe80zf8= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Schmitz , Andreas Schwab , Dmitry Torokhov , Sasha Levin Subject: [PATCH AUTOSEL 4.18 24/58] Input: atakbd - fix Atari CapsLock behaviour Date: Mon, 8 Oct 2018 11:24:49 -0400 Message-Id: <20181008152523.70705-24-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181008152523.70705-1-sashal@kernel.org> References: <20181008152523.70705-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Schmitz [ Upstream commit 52d2c7bf7c90217fbe875d2d76f310979c48eb83 ] The CapsLock key on Atari keyboards is not a toggle, it does send the normal make and break scancodes. Drop the CapsLock toggle handling code, which did cause the CapsLock key to merely act as a Shift key. Tested-by: Michael Schmitz Signed-off-by: Michael Schmitz Signed-off-by: Andreas Schwab Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/keyboard/atakbd.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/input/keyboard/atakbd.c b/drivers/input/keyboard/atakbd.c index 524a72bee55a..fdeda0b0fbd6 100644 --- a/drivers/input/keyboard/atakbd.c +++ b/drivers/input/keyboard/atakbd.c @@ -189,14 +189,8 @@ static void atakbd_interrupt(unsigned char scancode, char down) scancode = atakbd_keycode[scancode]; - if (scancode == KEY_CAPSLOCK) { /* CapsLock is a toggle switch key on Amiga */ - input_report_key(atakbd_dev, scancode, 1); - input_report_key(atakbd_dev, scancode, 0); - input_sync(atakbd_dev); - } else { - input_report_key(atakbd_dev, scancode, down); - input_sync(atakbd_dev); - } + input_report_key(atakbd_dev, scancode, down); + input_sync(atakbd_dev); } else /* scancodes >= 0xf3 are mouse data, most likely */ printk(KERN_INFO "atakbd: unhandled scancode %x\n", scancode); -- 2.17.1