mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Deleate fts_system_reset in wait_for_ready
TP: There may be a problem of function recursive calling. [ 72.152265] Kernel panic - not syncing: kernel stack overflow [ 72.152270] CPU: 2 PID: 515 Comm: modprobe Tainted: G S O 5.4.61-moto-00155-gb5a835fac66e #1 [ 72.152273] Hardware name: Berlin (DT) [ 72.152277] Call trace: [ 72.152283] dump_backtrace.cfi_jt+0x0/0x4 [ 72.152289] show_stack+0x18/0x24 [ 72.152296] dump_stack+0xb8/0x114 [ 72.152302] panic+0x188/0x3f0 [ 72.152306] nmi_panic+0x98/0xb8 [ 72.152311] handle_bad_stack+0x11c/0x130 [ 72.152317] __bad_stack+0xc8/0xcc [ 72.152322] update_group_capacity+0x4/0x290 [ 72.152326] find_busiest_group+0xe0/0x834 [ 72.152331] load_balance+0x2b0/0xe7c [ 72.152336] newidle_balance+0x2f4/0x5d4 [ 72.152341] pick_next_task_fair+0x40/0x664 [ 72.152347] __schedule+0x290/0x8ac [ 72.152351] schedule+0x8c/0xc0 [ 72.152356] schedule_timeout+0x90/0x120 [ 72.152361] wait_for_common+0xd0/0x16c [ 72.152366] wait_for_completion_timeout+0x14/0x20 [ 72.152372] geni_i2c_xfer+0x3d8/0x12fc [ 72.152379] __i2c_transfer+0x2a4/0x8d8 [ 72.152383] i2c_transfer+0xd4/0x1a4 [ 72.152412] fts_writeReadU8UX+0x1ac/0x290 [stmicro_mmi] [ 72.152433] pollForEvent+0xc0/0x378 [stmicro_mmi] [ 72.152454] fts_system_reset+0x104/0x268 [stmicro_mmi] [ 72.152475] fts_system_reset+0x11c/0x268 [stmicro_mmi] Change-Id: I0f09ef7edd856b21afe71866fc260208184807c0 Reviewed-on: https://gerrit.mot.com/1960709 Reviewed-by: Jichao Zou <zoujc@motorola.com> SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key
This commit is contained in:
parent
5015d763e9
commit
8899397ed7
2 changed files with 2 additions and 13 deletions
|
|
@ -96,23 +96,12 @@ void setResetGpio(int gpio)
|
|||
|
||||
int fts_wait_for_ready(void)
|
||||
{
|
||||
int ret = -1;
|
||||
int i;
|
||||
u8 readData[FIFO_EVENT_SIZE];
|
||||
int event_to_search;
|
||||
|
||||
event_to_search = (int)EVT_ID_CONTROLLER_READY;
|
||||
|
||||
for (i = 0; i < 3; i++) {
|
||||
ret = pollForEvent(&event_to_search, 1, readData, GENERAL_TIMEOUT);
|
||||
if (ret == ERROR_TIMEOUT || ret == ERROR_BUS_R)
|
||||
fts_system_reset();
|
||||
else
|
||||
return ret;
|
||||
}
|
||||
|
||||
logError(1, "%s fts_wait_for_ready Failed\n", tag);
|
||||
return ret;
|
||||
return pollForEvent(&event_to_search, 1, readData, GENERAL_TIMEOUT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -646,7 +646,7 @@ static int fts_mmi_refresh_rate(struct device *dev, int freq)
|
|||
board->report_rate_cmd[2] = 0x00;
|
||||
|
||||
if (ts->report_rate == board->report_rate_cmd[2]) {
|
||||
pr_info("value is same,so not write.\n");
|
||||
dev_dbg(dev, "%s: value is same, so not write.\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue