]> git.baikalelectronics.ru Git - kernel.git/commit
Input: zinitix - make sure the IRQ is allocated before it gets enabled
authorNikita Travkin <nikita@trvn.ru>
Sun, 9 Jan 2022 07:19:19 +0000 (23:19 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 9 Jan 2022 07:24:28 +0000 (23:24 -0800)
commit3623c0f5367282f8e1e4b53c3723623b6a85854a
tree7b86e077b0d908fc9bec290d47a049ab5a982abe
parentd99bbf97e1da67067deea86e258b341c29ada28f
Input: zinitix - make sure the IRQ is allocated before it gets enabled

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: e08f091d38ab ("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>
drivers/input/touchscreen/zinitix.c