wls-chg: add fw ver judgment for blank chip

For cps4019, when there is no fw in chip(blank chip), its version
may be 0xB4B5.0xB6B7. It is larger than normal version number
(for example, 1.2). So fw update judgement should consider this
situation.

Change-Id: I033ab39837f85fab9d1d1e1694d0b3fb972a375d
Reviewed-on: https://gerrit.mot.com/2274466
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
weiweij 2022-05-20 09:28:21 +08:00 • committed by Wei Wei
commit df8702a208

View file

@ -528,7 +528,8 @@ static bool cps_check_fw_ver(void)
cps_wls_log(CPS_LOG_ERR, "[%s] chip id %d.%d\n", __func__, fw_major, fw_minor);
if ((chip->fw_ver_major > fw_major)
|| (chip->fw_ver_minor > fw_minor))
|| (chip->fw_ver_minor > fw_minor)
|| ((fw_major > 0xB0) && (fw_minor > 0xB0)))/*For blank chip, fw ver may be B4B5.B6B7*/
ret = true;
else
ret = false;