]> Pileus Git - ~andy/linux/commit
dell-laptop: Only install the i8042 filter when rfkill is active
authorHans de Goede <hdegoede@redhat.com>
Tue, 24 Dec 2013 19:34:01 +0000 (20:34 +0100)
committerMatthew Garrett <matthew.garrett@nebula.com>
Tue, 21 Jan 2014 13:44:17 +0000 (08:44 -0500)
commit97f440c23f2b02fac8af0558cba9ca0bed603794
tree838437bb563ed638c743e07c06be4999645f6b79
parent997ab407d2b4e7d7ce2788d2de68435eb94fcfec
dell-laptop: Only install the i8042 filter when rfkill is active

Installing the i8042 filter is not useful on machines where rfkill is not
whitelisted, so move the filter installation into dell_setup_rfkill,
after the whitelist check.

This avoids doing a needless and potentially troublesome rfkill query
(dell_send_request(buf, 17, 11)) when the wireless Fn key gets pressed on
non whitelisted laptops.

This patch was written as a result of:
https://bugzilla.redhat.com/show_bug.cgi?id=1045807
It is not yet clear if this is related, but it is a good idea to not register
the i8042 filter in general.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/dell-laptop.c