Skip to content

Commit

Permalink
Input: cyttsp - error message on boot mode exit error
Browse files Browse the repository at this point in the history
Provide a proper error message when attempting to exit boot loader mode
and failing, which is something that happened to me.

Reviewed-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
linusw authored and dtor committed Apr 10, 2021
1 parent 236798a commit 3984113
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/input/touchscreen/cyttsp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,10 @@ static int cyttsp_power_on(struct cyttsp *ts)
if (GET_BOOTLOADERMODE(ts->bl_data.bl_status) &&
IS_VALID_APP(ts->bl_data.bl_status)) {
error = cyttsp_exit_bl_mode(ts);
if (error)
if (error) {
dev_err(ts->dev, "failed to exit bootloader mode\n");
return error;
}
}

if (GET_HSTMODE(ts->bl_data.bl_file) != CY_OPERATE_MODE ||
Expand Down

0 comments on commit 3984113

Please sign in to comment.