DLKM: Improve focaltech touch driver

Optimizing the upgrading process of TDDI

Change-Id: I73781b135fe41169f427c7949c8524f843305b79
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1216707
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wengjun1 2018-07-27 11:33:54 +08:00 • committed by Jun Weng
commit b96c662788
2 changed files with 4 additions and 3 deletions

View file

@ -1624,19 +1624,16 @@ static bool fts_lic_need_upgrade(struct i2c_client *client)
ret = fts_lic_get_vid_in_host(&vid_in_host);
if (ret < 0) {
FTS_ERROR("[UPGRADE]vendor id in host invalid\n");
return false;
}
ret = fts_lic_get_vid_in_tp(client, &vid_in_tp);
if (ret < 0) {
FTS_ERROR("[UPGRADE]vendor id in tp invalid\n");
return false;
}
FTS_DEBUG("[UPGRADE]vid in tp:%x, host:%x\n", vid_in_tp, vid_in_host);
if (vid_in_tp != vid_in_host) {
FTS_INFO("[UPGRADE]vendor id in tp&host are different, no upgrade lic\n");
return false;
}
ret = fts_lic_get_ver_in_host(&initcode_ver_in_host);

View file

@ -2307,6 +2307,10 @@ static ssize_t ft_do_reflash_store(struct device *dev,
mutex_unlock(&data->input_dev->mutex);
retval = count;
ft_update_fw_ver(data);
ft_update_fw_vendor_id(data);
ft_update_fw_id(data);
exit:
data->fw_name[0] = 0;
return retval;