From d365e24d5bb2defbcef9f917f1af730868edfbde Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Sat, 11 Aug 2018 15:36:28 +0800 Subject: [PATCH] motorola: dlkm: write NA or ROW reg after FW updated -write NA or ROW reg after FW updated Change-Id: I902485d805067d74b8d2590e85bf3e8aeb8d41da Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/1224745 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wen Xie Reviewed-by: Yi Cao Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- drivers/misc/abov/abov_sar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/misc/abov/abov_sar.c b/drivers/misc/abov/abov_sar.c index 896bdf5eb482..3dd0bbd36f39 100644 --- a/drivers/misc/abov/abov_sar.c +++ b/drivers/misc/abov/abov_sar.c @@ -1211,6 +1211,7 @@ static int _abov_fw_update(struct i2c_client *client, const u8 *image, u32 size) unsigned short address; unsigned char addrH, addrL; unsigned char data[32] = {0, }; + pabovXX_t this = abov_sar_ptr; LOG_INFO("%s: call in\r\n", __func__); @@ -1271,6 +1272,8 @@ static int _abov_fw_update(struct i2c_client *client, const u8 *image, u32 size) } SLEEP(100); + hw_init(this); + return ret; }