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:
haojl2 2019-09-23 21:32:14 +08:00 • committed by Jialei Hao
commit aee37f56c2

View file

@ -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;
}