mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
goodix_gtx8_v1430_mmi: update FW automatically
TP: Moto TP FW upload script is not bringuped for this driver. So update FW automatically when bootup. Change-Id: Iabc14f37f0207bd535f25e02574ef9eefae8b358 Signed-off-by: haojl2 <haojl2@motorola.com> Reviewed-on: https://gerrit.mot.com/1426462 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Tao Sun <suntao2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
0ab2ef53fd
commit
aee37f56c2
1 changed files with 6 additions and 0 deletions
|
|
@ -1518,6 +1518,12 @@ static int goodix_fw_update_init(struct goodix_ts_core *core_data,
|
|||
goodix_fw_update_ctrl.initialized = 1;
|
||||
err_out:
|
||||
mutex_unlock(&goodix_fw_update_ctrl.mutex);
|
||||
if (!ret) {
|
||||
goodix_do_fw_update(UPDATE_MODE_SRC_REQUEST);
|
||||
if (ret)
|
||||
ts_err("fw update failed, %d", ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue