Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3949445imm; Mon, 8 Oct 2018 12:10:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV62VZlNnJRuBL0P17xN49/JFAbkFotCS2XGJ0sgd9gQT6vaR6eiSiWulTx9heswY8VT4cixC X-Received: by 2002:a63:c0f:: with SMTP id b15-v6mr22625232pgl.400.1539025801413; Mon, 08 Oct 2018 12:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539025801; cv=none; d=google.com; s=arc-20160816; b=iZsLANCi9Dg0zESR4Z/B3VcUAUfGf+t6p/Dw8tOUEPgOMMUoyttzabYgzUg4HvfMK6 XiktBX8APbuu/h1BXRbvF/imZ6e/WaHzCHOzn5sT02Vx6CAznQY1CxN6YAFCJz+La38k wThVws/JOJKn/DqYa5xJ6eqIqfm2xxA77lfF/XbhUbvLIVupXYaD5JxI8SgC8IAIycNJ O5EcYLFw3+UlCzTxqep96D2L9d+hThxQI2LF7X2lQ/uVteC61QOLUKcx3BEY2WhZHD53 +NbkNQf3pwhpAQdK+dxzoPpSQ45/oM0MSaEKlORatCvLXLEWGS8VzK7qyxVIyYaHcF17 lODg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gTJFg4ENuqMCtoe06lY3tTT7aq8ayao0EQ4OYA9NmzQ=; b=B5oLbLQGcifXD/uP1AnZI4agv9x0LeMoJ4N3S1Gvj72goHjaIDGiibR4UJymJ6utLT R+Tp8lA2ayDzxePnb0+i/q3YF/V8CG8pm3J30LFw/jE7eSrWPO4b33DCKHDynGYEqGC6 KKGReSENWLtYf4LPO4PxYytxQDppVzQiC4cTrRQoAPOscaj3+LO8WZL4DEeEmpqXUiUK VA3X9P2vks+gemdTlgW9RDsGvPzoJjBtb44Xq8MDW3/vS6gex+YdwFnsWUUeRh9AftZD QRN0tYIjbUJwtWP9Pmi+7hFQHHSO1p/4rIgHg9+GGF8pTevJQ7qa73nJ7C7LrXWIDdey Tedw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="XOF/PVOZ"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v70-v6si19121625pfa.103.2018.10.08.12.09.46; Mon, 08 Oct 2018 12:10:01 -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=@gmail.com header.s=20161025 header.b="XOF/PVOZ"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727193AbeJICWy (ORCPT + 99 others); Mon, 8 Oct 2018 22:22:54 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38780 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbeJICWx (ORCPT ); Mon, 8 Oct 2018 22:22:53 -0400 Received: by mail-pl1-f194.google.com with SMTP id b5-v6so10483467plr.5; Mon, 08 Oct 2018 12:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=gTJFg4ENuqMCtoe06lY3tTT7aq8ayao0EQ4OYA9NmzQ=; b=XOF/PVOZRmPxR76dN3ZskG852I24TPvx40a9amdpXRKlw36L+vXUNqBepwq3wRO1Kl 1z1JLw8sJnGcKn55Ss25rV1G/CCdGCAeLwMhLdZN55JuYVl9ZC6k9FMr/JcVHzAdsXpO GZP/ZUNUqImiFVPEGwjh2k4U8y7OJMUB0W5wLXs5R3u0GB7LSZE8DgRJaHqOYvjdWfo/ UJl7vThS9cnRLHa+SEC42lGZO3k/h2GwuVlcPvJz6/PHsXIxPn0PZ/smhFDdy+tNBBhd EyL7+Egjd3oVzrr2QUc2JHwLUaIrMNcjvmzMi11asui3s+M99vdpStqbpi7JCLwl20I2 QWUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=gTJFg4ENuqMCtoe06lY3tTT7aq8ayao0EQ4OYA9NmzQ=; b=ODJkJhpABPY7omges0y6GoIL1/rD43Eje76zFdrDi1Jl9W77pNV2j/NkfELbLrAsQI TbhpBANceHKuMhqN9s6zQJdaZ2GuSz8zcF7abaIiO5pfBiLR5bQni0FwUMkupCQlpDgi L/JZmUWsxMFMOoPmUorRSnGR63M/WSYwAwh8yd+cUJCIKoLdfeFhgcsfEEr2ovngwtuU eAeoZp5Q6Lctep2xblpsorUzZ+0PxbgzAPsoXMjrK+YnnEtCTPsC93ymuN+9zaKiqF+Q GVSttJncuOFG/Eods6kDqMrVHkgFYPyIlGmU8FQsX8GRcQUF+YVZre0oGTjqKGeBrLB3 Vfog== X-Gm-Message-State: ABuFfojQ3tKHzM6mNpE42OiVyuz4+hlrVG9MUW0tBfdtEXnSt00L4EVz y9fFDUltHmy4mJty9kZdzMo= X-Received: by 2002:a17:902:4503:: with SMTP id m3-v6mr24553019pld.168.1539025780152; Mon, 08 Oct 2018 12:09:40 -0700 (PDT) Received: from ?IPv6:2001:df0:0:200c:d530:cfe2:1970:fdab? ([2001:df0:0:200c:d530:cfe2:1970:fdab]) by smtp.gmail.com with ESMTPSA id g5-v6sm27241960pfk.160.2018.10.08.12.09.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 12:09:39 -0700 (PDT) Subject: Re: [PATCH AUTOSEL 4.18 24/58] Input: atakbd - fix Atari CapsLock behaviour To: Dmitry Torokhov , sashal@kernel.org Cc: "3.8+" , lkml , Andreas Schwab , alexander.levin@microsoft.com References: <20181008152523.70705-1-sashal@kernel.org> <20181008152523.70705-24-sashal@kernel.org> From: Michael Schmitz Message-ID: Date: Tue, 9 Oct 2018 08:09:34 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dmitry, someone on debian-68k reported the bug, which (to me) indicates that the code is not just used by me. Whether or not a functioning Capslock is essential to have? You be the judge of that. If you are OK with applying the keymap patch, why not this one? Debian will carry stable patches without explicit action on behalf of the maintainer. Unstable patches are a little harder to get accepted. Cheers,     Michael On 09/10/18 06:11, Dmitry Torokhov wrote: > On Mon, Oct 8, 2018 at 8:25 AM Sasha Levin wrote: >> 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. > This has been broken for 10+ years. Does it really make sense to > promote it to stable? > >> 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 >> >