Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2224329imm; Thu, 18 Oct 2018 10:59:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV62qM0cbR2YjbunpXyIa+IsotS9VDcEIjUxRNWYD8oQrRvQoIzYwItDu6WfWP54y+TgKWGAZ X-Received: by 2002:a65:610e:: with SMTP id z14-v6mr29220092pgu.138.1539885562009; Thu, 18 Oct 2018 10:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539885561; cv=none; d=google.com; s=arc-20160816; b=Ny2tuDIt9XdwdSiDpwsklzdM6g0SJ/6qbHZdUNX/dz+UjA9qf+7d4nOU0gVe57dDB7 wgJWNT8pK6r0EYRQoFA9wKlqGC3dwx/0d+dqdDwC4OnC1JWWTFxqDnkBuyQEmi0m9AjY UjLzOZV7vTS1PJtRahOM1suSMBPHftTY0vDwQnZaX6X94OuuRlukT2I70cZu4KuXKLuK afu3OHP2c+sPhMo1a7i+E9RhLI37VM729n3hVSF0+O2p76cuGtx+eoxXvaAzyJmWqTc6 3DBFARn4XZiiVdDsccLYbq/PwIXhr/ccnmxw0FllfZPKnP48QVwBL11grO5NBwklpTW4 f63w== 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=I/UyxeLo398K6Lfbo3R2HTs1cdwoloOpr9c7HfMUrE8=; b=sE0f+w7YVFY+CqE4Mb+TTb1YIUfo0UZKzMbnhxc9o0zFQw0NKYhhP38/sPihTc+Rze cF5qPLQVqk3O2MkhECYIHFZnyV49J7DcY38qJ19GW2p6Heym+2DNQYbckSceBCcHkCr+ tnWK6/Pyl2kbdjYau09wbUCZUqu6TAbbLAehexmDEjiEEeu8ZmPudiYyEsdD15kA+gue kLFfTNSaaw3K+oFDksRJe5SPT6u5b6b9JxyIqVza84bI6Pzx2G2eWfx0OXCzDmkFR/OV EP21evpV70juParR2p0qQ+heyDkO73GGuLuTFu9SJHs8I9ik585nulSTkKiGBvWbnlkU AdZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v4+EMzYa; 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 s17-v6si19362794pgv.445.2018.10.18.10.59.06; Thu, 18 Oct 2018 10:59:21 -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=v4+EMzYa; 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 S1728765AbeJSB7D (ORCPT + 99 others); Thu, 18 Oct 2018 21:59:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:46766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728728AbeJSB7C (ORCPT ); Thu, 18 Oct 2018 21:59:02 -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 A85362145D; Thu, 18 Oct 2018 17:56:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885417; bh=YpxBF48hzr3UsmcO/OGmcc1GDJXxe4EvrOl8JLeSlrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v4+EMzYa+AdaBWgH0k6kppd1I/jEuv7csZXECRXAjbjfX1Q8FVxL3+VOzpcv+5xTw 2ZINe8fp/ialmVIBn2d1sT/oDn9IA/IWrXcI6FQnDgIQ5Zs3PQVlFBD4K1TBMgENFt GQ4Ut2cIWajhRkFoVEqE+8UeL2R3EvlfBbIDNMhY= 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.18 22/53] Input: atakbd - fix Atari CapsLock behaviour Date: Thu, 18 Oct 2018 19:54:15 +0200 Message-Id: <20181018175420.556188408@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175416.561567978@linuxfoundation.org> References: <20181018175416.561567978@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.18-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);