mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Revert "power: smb5: Drop the batt_psy checks and use 100mA to reset input"
Fixes: [ 0.808279] Unable to handle kernel NULL pointer dereference at virtual address 000003e0 [ 0.808285] Mem abort info: [ 0.808289] Exception class = DABT (current EL), IL = 32 bits [ 0.808293] SET = 0, FnV = 0 [ 0.808297] EA = 0, S1PTW = 0 [ 0.808300] FSC = 5 [ 0.808303] Data abort info: [ 0.808306] ISV = 0, ISS = 0x00000005 [ 0.808310] CM = 0, WnR = 0 [ 0.808313] [00000000000003e0] user address but active_mm is swapper [ 0.808318] Internal error: Oops: 96000005 [#1] PREEMPT SMP [ 0.808322] Modules linked in: [ 0.808328] Process kworker/0:0 (pid: 4, stack limit = 0x0000000094d277db) [ 0.808335] CPU: 0 PID: 4 Comm: kworker/0:0 Tainted: G S 4.14.243-QuicksilveR\xe2\x84\xa2-v2.5/72ff6208 #12 [ 0.808338] Hardware name: Qualcomm Technologies, Inc. trinket pm6125 + pmi632 IDP (DT) [ 0.808350] Workqueue: events bms_update_work [ 0.808355] task: 00000000ccbd24e3 task.stack: 0000000094d277db [ 0.808363] pc : power_supply_changed+0x38/0xc0 [ 0.808369] lr : process_one_work+0x1e4/0x330 [ 0.808373] sp : ffffff8008073d80 pstate : 600000c5 [ 0.808377] x29: 0000000000000402 x28: ffffffe5bfd26c20 x27: ffffff8f4ce06000 [ 0.808384] x26: ffffffe5bb062000 x25: 00000000bfd2b305 x24: ffffffe5bb05bf10 [ 0.808390] x23: 0000000000000001 x22: 0000000000000040 x21: ffffffe5bb062000 [ 0.808397] x20: 00000000000003e0 x19: 0000000000000000 x18: 0000000000000000 [ 0.808403] x17: 0000000000000012 x16: 0000000000000012 x15: 00000000001529f0 [ 0.808409] x14: 0000000000000012 x13: 005245544f565f44 x12: 52414f425f475542 [ 0.808416] x11: ffffffe5bb062000 x10: 0000000000000000 x9 : 0000000000000001 [ 0.808422] x8 : 0000000000000000 x7 : 45544f565f445241 x6 : 4f425f4755424544 [ 0.808429] x5 : ffffffe5b618d312 x4 : ffffff8f4c6356de x3 : ffffffe5b618d300 [ 0.808435] x2 : 0000000000000000 x1 : ffffffe5b5612080 x0 : 0000000000000000 [ 0.808443] \x0aPC: 0xffffff8f4b8b30c8: [ 0.808447] 30c8 d65f03c0 00000000 a9bd5ffe a90157f6 d5384115 a9024ff4 aa0003f3 d53b4236 [ 0.808460] 30e8 d50342df 910f8014 b9404aa9 52800037 aa1f03e8 11000529 b9004aa9 f9800291 [ 0.808471] 3108 885ffe81 4a080029 35000069 88097e97 35ffff89 350002e1 9100e260 390f9277 [ 0.808483] 3128 97f0ff76 2a1f03e8 089ffe88 d51b4236 f94026a8 f1000508 b9004aa8 54000160 [ 0.808495] \x0aLR: 0xffffff8f4acec224: [ 0.808499] c224 d37be908 2a1f03e9 d538411a f90002c8 d5033bbf 089ffea9 d50342ff f9402748 [ 0.808511] c244 f1000508 b9004b48 540005e0 f9402748 b40005a8 f9400e88 aa1603e0 d63f0100 [ 0.808522] c264 b9404b48 350005c8 9401cdd9 3952c348 34000048 3912c35f d50342df aa1f03e8 [ 0.808534] c284 b9404b49 5280002a 11000529 b9004b49 f98002b1 885ffea1 4a080029 35000069 [ 0.808546] \x0aSP: 0xffffff8008073d40: [ 0.808550] 3d40 4b8b3108 ffffff8f 600000c5 00000000 b5612560 ffffffe5 bfd26c00 ffffffe5 [ 0.808561] 3d60 ffffffff ffffffff b5612080 ffffffe5 00000402 00000000 4b8b3108 ffffff8f [ 0.808573] 3d80 4acec264 ffffff8f 00000000 00000000 b5612560 ffffffe5 bfd26c00 ffffffe5 [ 0.808585] 3da0 bb05bf00 ffffffe5 bfd2b300 ffffffe5 4acec754 ffffff8f 4ce06000 ffffff8f [ 0.808596] [ 0.808599] Call trace: [ 0.808604] power_supply_changed+0x38/0xc0 [ 0.808611] Code: aa1f03e8 11000529 b9004aa9 f9800291 (885ffe81) [ 0.808618] ---[ end trace 8ed05f3b3fc0023f ]--- This reverts commit 3bec532ad7059510e09fb8716890a9dda515a206. Signed-off-by: Forenche <prahul2003@gmail.com>
This commit is contained in:
parent
06a4f0a719
commit
3706025cd1
@ -8525,7 +8525,8 @@ static void bms_update_work(struct work_struct *work)
|
||||
|
||||
smblib_suspend_on_debug_battery(chg);
|
||||
|
||||
power_supply_changed(chg->batt_psy);
|
||||
if (chg->batt_psy)
|
||||
power_supply_changed(chg->batt_psy);
|
||||
}
|
||||
|
||||
static void pl_update_work(struct work_struct *work)
|
||||
|
Loading…
x
Reference in New Issue
Block a user