Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2236127imm; Thu, 18 Oct 2018 11:09:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV63iig1vUCQdW729XluPMWAg89FhVtiza9tRLRGRrmR1T8zazo3V0cCirO6WY7JtJOSa1WBT X-Received: by 2002:a17:902:7785:: with SMTP id o5-v6mr30116959pll.200.1539886181468; Thu, 18 Oct 2018 11:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539886181; cv=none; d=google.com; s=arc-20160816; b=Py0LQBjxURmeer8aSGuYRfh3f42DI7RiBKqRq70Mmd6FmXTA4DHil6/M3OTjVFnyas az/h8Xhs98UY31mTvMwOwt5TmS6IvMeMGI3fJ+9e7F06g6s/Je7Hb5gZ6ZRAME05f0+g yUF7mZ7GJ3IyKohle03o4rr/2V3CUiDdnn7VyjhCqzE5k/2SZ8b9+unlFUgE3lP1IyjF zcmzqYIXqXDVVSr6EcW2RCC9MIXqENEls1i8eXVHI6ID/dIHSBwbk0LVDf1kQJQYdQWh JFGAJcSzGXfvslWiMih6tWTb+SGAeKjxwGYUyHCen1F5zlrl1Hyz2YOBNm2Qz5up8IV+ xlhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OfMO3bzkwyP5piWslneaKCi68Ie0yQuP/73L3aGQ2ak=; b=cRxiRqePMLp6unYPNM5KdBRPhzrL6rLa2MqJ+cO6QTacABrloeDxQC5eu6HZl418+c iGbgh5VF2ZohKeVSU+gkf+e15j/spcVvqMZaY8JxQZIZLm91PE9WGjrYEmI8otrXcvBb 9OFib4sDjSjL0iarkiEk2xnr2TIbndk3PzXetYLR1gVGgcbU+AncReTT4rTEWWdzfoJ5 E6isn9EgpwVjZW6P1Z7NCLQS2S2yHVuTumDbetb+nr1uFMHjREMh81uFVBHGVrQdSfSf r8lccRe6UWd7ks/pHZ3ussvK2PfBjR83+g/2sMLA+EfwnyEjcTMaDG55gXyvvNxr6OZj Qm6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HRyYjQnW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 207-v6si21095963pgb.298.2018.10.18.11.09.26; Thu, 18 Oct 2018 11:09:41 -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=HRyYjQnW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730653AbeJSCJX (ORCPT + 99 others); Thu, 18 Oct 2018 22:09:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:58788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728944AbeJSCJW (ORCPT ); Thu, 18 Oct 2018 22:09:22 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2F30620658; Thu, 18 Oct 2018 18:07:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539886034; bh=QlkZdUTz7Y0euEqHknVE/lm9CR2Sq88EPDOIjZwYi6o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HRyYjQnWveS+cMkSUjp79YCWCpof+ZXLD8CkLwaMZ8UB9aiC1IVX+b9x+mbS+kSW4 RXV7q0Qm82H1GEelvm2odGcphfEiml4q5dE++j5uOtGS4CmT2maQSpb4uD8uFukChv ZPS1jqV+E9BZJXuacRCmV25HNrrWb41Av/jA0dF4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Schmitz , Andreas Schwab , Dmitry Torokhov , Sasha Levin Subject: [PATCH 4.4 38/48] Input: atakbd - fix Atari CapsLock behaviour Date: Thu, 18 Oct 2018 19:55:13 +0200 Message-Id: <20181018175429.965870946@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175427.133690306@linuxfoundation.org> References: <20181018175427.133690306@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ 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 Signed-off-by: Greg Kroah-Hartman --- drivers/input/keyboard/atakbd.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) --- a/drivers/input/keyboard/atakbd.c +++ b/drivers/input/keyboard/atakbd.c @@ -189,14 +189,8 @@ static void atakbd_interrupt(unsigned ch 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);