media: Revert "media: rc: some events are dropped by userspace"
authorSean Young <sean@mess.org>
Fri, 22 Feb 2019 09:08:05 +0000 (04:08 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 1 Mar 2019 14:19:41 +0000 (09:19 -0500)
commit05f0edadcc5fccdfc0676825b3e70e75dc0a8a84
tree82dc534b881c6ee10326d634aa313b4331e51904
parent9fabe1d108ca4755a880de43f751f1c054f8894d
media: Revert "media: rc: some events are dropped by userspace"

When an rc device is created, we do not know what key codes it will
support, since a new keymap might be loaded at some later point. So,
we set all keybit in the input device.

The uevent for the input device includes all the key codes, of which
there are now 768. This overflows the size of the uevent
(UEVENT_BUFFER_SIZE) and no event is generated.

Revert for now until we figure out a different solution.

This reverts commit fec225a04330d0f222d24feb5bea045526031675.

Cc: <stable@vger.kernel.org> # 4.20+
Reported-by: Christian Holpert <christian@holpert.de>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/rc/rc-main.c