mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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:
parent
0eeeb5c97a
commit
b96c662788
2 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue