Linux Input/HID development
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Steffen A. Mork" <linux-dev@morknet.de>
Cc: linux-input@vger.kernel.org,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH v2] input: amikbd: fix scancode to key code conversion
Date: Tue, 01 Dec 2026 14:10:16 -0800	[thread overview]
Message-ID: <99f5d4890e592841187d73efeb7f4fa5@gmail.com> (raw)
In-Reply-To: <20261201164021.1170152-1-linux-dev@morknet.de>

Hi Steffen,

On Tue, Dec 01, 2026 at 05:40:21PM +0100, Steffen A. Mork wrote:
> Previously the amikbd.c driver passed raw Amiga keyboard scancodes via
> input_report_key(). As a result incorrect key codes were transmitted to
> libinput and the input event framework, while a remapping was
> simultaneously being performed for the VT console via
> amikbd_init_console_keymaps().
>
> This patch corrects the transmission of these scancodes by ensuring that
> the proper Linux key codes are passed to input_report_key() instead.
> Consequently, the remapping for the console is no longer necessary.
>
> The Atari keyboard driver atakbd.c served as a reference for implementing
> this fix.
>
> Tested-by: Steffen A. Mork <linux-dev@morknet.de> # native Amiga 2000
> Tested-by: Steffen A. Mork <linux-dev@morknet.de> # FS-UAE virtual Amiga 3000
> Fixes: 5fa28ea42f28 ("[PATCH] m68k: restore amikbd compatibility with 2.4")
> Signed-off-by: Steffen A. Mork <linux-dev@morknet.de>

Commit 5fa28ea42f28 was an intentional change in 2006 to keep 2.4 Amiga
console keymaps working, and Roman Zippel pushed back against switching
to standard Linux keycodes when this came up again in 2007:

https://lore.kernel.org/r/d120d5000705031217h64db0644qb1e8bc8d8af6e78c@mail.gmail.com

It has been the driver's behavior for 20 years now and changing it will
break setups still using existing Amiga keymaps. Unless Geert wants this
change, we should leave the driver alone.

Thanks.

-- 
Dmitry

  reply	other threads:[~2026-12-01 22:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 16:40 [PATCH v2] input: amikbd: fix scancode to key code conversion Steffen A. Mork
2026-12-01 22:10 ` Dmitry Torokhov [this message]
2026-12-01 22:10 ` Daniel Palmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99f5d4890e592841187d73efeb7f4fa5@gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-dev@morknet.de \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox