https://github.com/torvalds/linux
Revision cf73ed894ee939d6706d65e0cd186e4a64e3af6d authored by Nikita Travkin on 09 January 2022, 07:19:19 UTC, committed by Dmitry Torokhov on 09 January 2022, 07:24:28 UTC
Since irq request is the last thing in the driver probe, it happens
later than the input device registration. This means that there is a
small time window where if the open method is called the driver will
attempt to enable not yet available irq.

Fix that by moving the irq request before the input device registration.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Fixes: 26822652c85e ("Input: add zinitix touchscreen driver")
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
Link: https://lore.kernel.org/r/20220106072840.36851-2-nikita@trvn.ru
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent bc7ec91
History
Tip revision: cf73ed894ee939d6706d65e0cd186e4a64e3af6d authored by Nikita Travkin on 09 January 2022, 07:19:19 UTC
Input: zinitix - make sure the IRQ is allocated before it gets enabled
Tip revision: cf73ed8
File Mode Size
kvm
lib
Makefile -rw-r--r-- 54 bytes

back to top