input: ili9882_mmi: set fw ready flag when download complete

ili9882_mmi:
Set fw ready flag as true when firmware download is complete.
Then pen can set its flag to touch ic.

Change-Id: Ib7866c831e906d65ca1d227acdbaa975b6401918
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2406397
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wangyq13 2022-10-18 14:24:31 +08:00 • committed by Yeqing Wang
commit 04e216f361

View file

@ -536,6 +536,12 @@ static int nvt_mmi_firmware_update(struct device *dev, char *fwname)
nvt_update_firmware(nvt_boot_firmware_name);
mutex_unlock(&ts->lock);
#ifdef NOVATECH_PEN_NOTIFIER
if(!ts->fw_ready_flag)
ts->fw_ready_flag = true;
nvt_mcu_pen_detect_set(ts->nvt_pen_detect_flag);
#endif
return 0;
}