Input: exc3000 - fix firmware version query for device in bootloader
authorLucas Stach <l.stach@pengutronix.de>
Mon, 8 Mar 2021 05:40:01 +0000 (21:40 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 8 Mar 2021 05:56:49 +0000 (21:56 -0800)
commitc929ac9eb85acf9217eb812369bbd4cf65a772e0
treecb3a856d21bea8e6f61c6fc2a1e0c404f3a09a91
parent102feb1ddfd00d0c6115ae3372058012dc16418c
Input: exc3000 - fix firmware version query for device in bootloader

If the device is stuck in bootloader (maybe due to blank or corrupted
application firmware) it won't answer a query for the firmware version.
Fall back to returning the bootloader version in that case.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Link: https://lore.kernel.org/r/20210125182527.1225245-4-l.stach@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/exc3000.c