kernel_optimize_test/drivers/media/rc
Hans Verkuil 83ff4f644d media: rc: compile rc-cec.c into rc-core
commit f09f9f93afad770a04b35235a0aa465fcc8d6e3d upstream.

The rc-cec keymap is unusual in that it can't be built as a module,
instead it is registered directly in rc-main.c if CONFIG_MEDIA_CEC_RC
is set. This is because it can be called from drm_dp_cec_set_edid() via
cec_register_adapter() in an asynchronous context, and it is not
allowed to use request_module() to load rc-cec.ko in that case. Trying to
do so results in a 'WARN_ON_ONCE(wait && current_is_async())'.

Since this keymap is only used if CONFIG_MEDIA_CEC_RC is set, we
just compile this keymap into the rc-core module and never as a
separate module.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 2c6d1fffa1 (drm: add support for DisplayPort CEC-Tunneling-over-AUX)
Reported-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-17 17:06:20 +01:00
..
img-ir
keymaps media: rc: compile rc-cec.c into rc-core 2021-03-17 17:06:20 +01:00
ati_remote.c media: ati_remote: sanity check for both endpoints 2020-09-27 11:24:07 +02:00
bpf-lirc.c
ene_ir.c
ene_ir.h
fintek-cir.c
fintek-cir.h
gpio-ir-recv.c media: rc: gpio-ir-recv: add QoS support for cpuidle system 2020-09-27 11:27:23 +02:00
gpio-ir-tx.c
igorplugusb.c
iguanair.c
imon_raw.c
imon.c
ir_toy.c media: ir_toy: add another IR Droid device 2021-03-04 11:38:34 +01:00
ir-hix5hd2.c
ir-imon-decoder.c
ir-jvc-decoder.c
ir-mce_kbd-decoder.c media: rc: fix timeout handling after switch to microsecond durations 2021-02-03 23:28:38 +01:00
ir-nec-decoder.c
ir-rc5-decoder.c
ir-rc6-decoder.c
ir-rcmm-decoder.c
ir-rx51.c
ir-sanyo-decoder.c
ir-sharp-decoder.c
ir-sony-decoder.c
ir-spi.c
ir-xmp-decoder.c
ite-cir.c media: rc: ite-cir: fix min_timeout calculation 2021-02-03 23:28:38 +01:00
ite-cir.h
Kconfig
lirc_dev.c
Makefile media: rc: compile rc-cec.c into rc-core 2021-03-17 17:06:20 +01:00
mceusb.c media: mceusb: sanity check for prescaler value 2021-03-07 12:34:04 +01:00
meson-ir.c
mtk-cir.c media: mtk-cir: fix calculation of chk period 2020-12-01 16:00:51 +01:00
nuvoton-cir.c
nuvoton-cir.h
pwm-ir-tx.c
rc-core-priv.h
rc-ir-raw.c
rc-loopback.c
rc-main.c media: rc: compile rc-cec.c into rc-core 2021-03-17 17:06:20 +01:00
redrat3.c
serial_ir.c media: rc: fix timeout handling after switch to microsecond durations 2021-02-03 23:28:38 +01:00
sir_ir.c
st_rc.c
streamzap.c
sunxi-cir.c media: sunxi-cir: ensure IR is handled when it is continuous 2020-12-30 11:54:04 +01:00
tango-ir.c
ttusbir.c
winbond-cir.c
xbox_remote.c
zx-irdec.c