Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3960175imm; Mon, 8 Oct 2018 12:21:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV62CHFUdNVA5b/ksgPSpls+12BCDPkcnLYmEPVotpRKb+UvTOd2vk0Xl6yl7udu8oMbvG/An X-Received: by 2002:a63:cb51:: with SMTP id m17-v6mr21916498pgi.105.1539026460892; Mon, 08 Oct 2018 12:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539026460; cv=none; d=google.com; s=arc-20160816; b=GV9eWkSK+czIEAjDiTkE3YIMvauTxS3TS3QrLswmpR7tZSlKqp2xK/WJbIkFyqkvl6 RYaIaSdMLy6WntO7aJY0eSKs2BpzC86zv5Sgy45994Y4up9n4extSQrL2R5PH7snCbQz ziXkCMS8ztx8Iqgrb5So0/ITsgf3duA4E1OO1f7NPm3ux4Hgrv92lEjnTwt05dmBKvFd 6jcr7EJ0lS3sScPWM/iLKB85SgbpHYYx5OkU/8LyNOh/bIaTutcdRFG5xyuQUSObRmd/ 33zNSPLAadbrLNDqizMglUwIet81tMXisRASh5vHwdEQmTShfXyw39fAupDXQ0b2H66s 5I/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qKYRvDd9F/SwT6JdPyd4EbqZoJqKFEVGuZyJt32Lcx0=; b=ve4ifBj21Eo8MTDjgQOpP0MyXalbatJh1xP6b3EHNHAA7dkQAVvzCZK4lqQ2gu8GQy YEULRmCcqZOYPViHEtgjGsizrKp6NJzSwfx7SyQ4cP8QUMBP3lwU8nz4f18exMfiIIbV QXbDdPCGEwofEmHPVc0TpsbAbnYyl14foBgPAsL9FD1GD/WoI4esqIGbcZlXVguCL0KY 4JHfklr0A8dV9GlI6S2gCFJFutVWnb6+mXCQojBjmgPnR2uuE+Nm6RYFosylj/nyxrWH AehEpsCBo4NXdyYG4Y9pt8X8P8tE+ANwV1JJxlvsT4hPlE3mkxoQhUJeUZ8+KwJTp+Qa fUgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GTPGcSq4; 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 r6-v6si20922983pfc.253.2018.10.08.12.20.46; Mon, 08 Oct 2018 12:21:00 -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=GTPGcSq4; 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 S1726967AbeJICd5 (ORCPT + 99 others); Mon, 8 Oct 2018 22:33:57 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45866 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbeJICd4 (ORCPT ); Mon, 8 Oct 2018 22:33:56 -0400 Received: by mail-lj1-f193.google.com with SMTP id j4-v6so15110721ljc.12; Mon, 08 Oct 2018 12:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qKYRvDd9F/SwT6JdPyd4EbqZoJqKFEVGuZyJt32Lcx0=; b=GTPGcSq4+PIXTW2Rstq0qo0I+RodTO7O2rmEBaPZkl5zFQhFeDzdNZf/z5PoQx1BsA j3+eLma0g8fqwGxjQKbdLr+9XEiqjh0IaVW3Gfa5RE3PHiMVoV1C4735P1dZfQ5TOe8L lD6KcmMzSUZoaxELKeB9J92Smxd0rgFC9Je/QLeCk6pOAzXJ7K0FIwFkzMT9HVXFhXZx 9NyS9NE9fPehudXuJh8J5Pt7/F9HXtjA81yqGGPHbb0wJsYgH9ZXF5DImur9UUZsprRU YIQY+aQGc6mMgHaS/NNBjwt13oA5YT/J7wRKPtnkee22UPm0GpBwofz3XR+OJaVZ5rQR eaug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qKYRvDd9F/SwT6JdPyd4EbqZoJqKFEVGuZyJt32Lcx0=; b=HM6Rc602mgBX6uydSl+5ViVqml/OUS+N5G+TLkUGyf9yji19cmWP4J1yK05rhKrxBb IIc0TWsofikeeiTxqUiId1mEEkzokSZvlSNceXXqDF7xqpTw0Af1fRB2vhwSfdabOmB/ r0y7j84jr3BbeUbOAycT+7fVtiEE0kmppRqYa1Q1Od5bTNCIcs97jJaYEb0zHp6fY05s N+zKgM/V0g/QsOgfHzVu7xljQQsw2b6DmuFo3P17Sqt38lajmrBi8E9m0VkP+rEc2A7j Q8i805hgs6Bvt/E3GrEN3F7uRCUV8hbjP1IqUPNVm3tzzTV3/HlHlI8wvX6srgK4YxPK wMeQ== X-Gm-Message-State: ABuFfohas55Ed2VZCcIlrURnAe6B+WYMNvEfQ/hvo7x67XssJY0n0jPP QukIncxv8edD4jFujy+MY7+6cqFzBFF0s7Mh2IE= X-Received: by 2002:a2e:5317:: with SMTP id h23-v6mr14908760ljb.26.1539026437828; Mon, 08 Oct 2018 12:20:37 -0700 (PDT) MIME-Version: 1.0 References: <20181008152523.70705-1-sashal@kernel.org> <20181008152523.70705-24-sashal@kernel.org> In-Reply-To: From: Dmitry Torokhov Date: Mon, 8 Oct 2018 12:20:26 -0700 Message-ID: Subject: Re: [PATCH AUTOSEL 4.18 24/58] Input: atakbd - fix Atari CapsLock behaviour To: Michael Schmitz Cc: sashal@kernel.org, "3.8+" , lkml , Andreas Schwab , alexander.levin@microsoft.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, On Mon, Oct 8, 2018 at 12:09 PM Michael Schmitz wrote: > > 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? I have exactly the same concerns about the keymap patch. This all has not been working correctly for many many years (and it was not broken in a subtly way as far as I understand, but rather quite obvious). Thus I do not understand why this belongs to stable release. It is not a [recent] regression, nor secutiry bug, nor even enabling of new hardware, that is why I myself did not mark it as stable. I still maintain that we pick up for stable too many patches for no clear benefit. This is similar to the patch for Atmel controllers that was picked to stable and I asked why, as it is not clear how many users might be affected (or if the problem the patch was solving was purely theoretical, or only affecting hardware that is not in circulation yet). > > 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 > >> > > > Thanks. -- Dmitry