diff --git a/drivers/input/touchscreen/focaltech_mmi/focaltech_flash.c b/drivers/input/touchscreen/focaltech_mmi/focaltech_flash.c index 79ecbf5e3ce9..f8af81abeb54 100644 --- a/drivers/input/touchscreen/focaltech_mmi/focaltech_flash.c +++ b/drivers/input/touchscreen/focaltech_mmi/focaltech_flash.c @@ -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); diff --git a/drivers/input/touchscreen/focaltech_mmi/focaltech_ts.c b/drivers/input/touchscreen/focaltech_mmi/focaltech_ts.c index 626c7f2c9552..2a08127dc3b9 100644 --- a/drivers/input/touchscreen/focaltech_mmi/focaltech_ts.c +++ b/drivers/input/touchscreen/focaltech_mmi/focaltech_ts.c @@ -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;