mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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:
parent
496a6958d1
commit
df8702a208
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue