mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
Modify synaptics' log information
1. The i2c error message is output only when the i2c transmission error exceeds the maximum number of attempts. 2. Output coordinate information when the touchscreen is pressed. Change-Id: Ida9f51904b0d40e39111529843b146844b4240b6 Reviewed-on: https://gerrit.mot.com/1543943 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jialei Hao <haojl2@motorola.com> Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
0fd56bb285
commit
0680049b4a
2 changed files with 23 additions and 4 deletions
|
|
@ -284,11 +284,14 @@ static int syna_tcm_i2c_rmi_read(struct syna_tcm_hcd *tcm_hcd,
|
|||
retval = length;
|
||||
goto exit;
|
||||
}
|
||||
LOGE(&i2c->dev,
|
||||
LOGD(&i2c->dev,
|
||||
"Transfer attempt %d failed\n",
|
||||
attempt + 1);
|
||||
|
||||
if (attempt + 1 == XFER_ATTEMPTS) {
|
||||
LOGE(&i2c->dev,
|
||||
"Transfer attempt %d failed, exceeding the maximum number of attempts\n",
|
||||
attempt + 1);
|
||||
retval = -EIO;
|
||||
goto exit;
|
||||
}
|
||||
|
|
@ -345,11 +348,14 @@ static int syna_tcm_i2c_rmi_write(struct syna_tcm_hcd *tcm_hcd,
|
|||
retval = length;
|
||||
goto exit;
|
||||
}
|
||||
LOGE(&i2c->dev,
|
||||
LOGD(&i2c->dev,
|
||||
"Transfer attempt %d failed\n",
|
||||
attempt + 1);
|
||||
|
||||
if (attempt + 1 == XFER_ATTEMPTS) {
|
||||
LOGE(&i2c->dev,
|
||||
"Transfer attempt %d failed, exceeding the maximum number of attempts\n",
|
||||
attempt + 1);
|
||||
retval = -EIO;
|
||||
goto exit;
|
||||
}
|
||||
|
|
@ -383,11 +389,14 @@ static int syna_tcm_i2c_read(struct syna_tcm_hcd *tcm_hcd, unsigned char *data,
|
|||
retval = length;
|
||||
goto exit;
|
||||
}
|
||||
LOGE(&i2c->dev,
|
||||
LOGD(&i2c->dev,
|
||||
"Transfer attempt %d failed\n",
|
||||
attempt + 1);
|
||||
|
||||
if (attempt + 1 == XFER_ATTEMPTS) {
|
||||
LOGE(&i2c->dev,
|
||||
"Transfer attempt %d failed, exceeding the maximum number of attempts\n",
|
||||
attempt + 1);
|
||||
retval = -EIO;
|
||||
goto exit;
|
||||
}
|
||||
|
|
@ -421,11 +430,14 @@ static int syna_tcm_i2c_write(struct syna_tcm_hcd *tcm_hcd, unsigned char *data,
|
|||
retval = length;
|
||||
goto exit;
|
||||
}
|
||||
LOGE(&i2c->dev,
|
||||
LOGD(&i2c->dev,
|
||||
"Transfer attempt %d failed\n",
|
||||
attempt + 1);
|
||||
|
||||
if (attempt + 1 == XFER_ATTEMPTS) {
|
||||
LOGE(&i2c->dev,
|
||||
"Transfer attempt %d failed, exceeding the maximum number of attempts\n",
|
||||
attempt + 1);
|
||||
retval = -EIO;
|
||||
goto exit;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -762,6 +762,8 @@ static void touch_report(void)
|
|||
input_mt_slot(touch_hcd->input_dev, idx);
|
||||
input_mt_report_slot_state(touch_hcd->input_dev,
|
||||
MT_TOOL_FINGER, 0);
|
||||
LOGI(tcm_hcd->pdev->dev.parent,
|
||||
"[R]Finger %d: UP\n", idx);
|
||||
#endif
|
||||
break;
|
||||
case FINGER:
|
||||
|
|
@ -808,6 +810,11 @@ static void touch_report(void)
|
|||
"Finger %d: x = %d, y = %d, x_width = %d, y_width = %d\n",
|
||||
idx, x, y, object_data[idx].x_width, object_data[idx].y_width);
|
||||
touch_count++;
|
||||
|
||||
if (object_data[idx].status != touch_hcd->prev_status[idx])
|
||||
LOGI(tcm_hcd->pdev->dev.parent,
|
||||
"[P]Finger %d: x=%d, y=%d, x_width=%d, y_width=%d\n",
|
||||
idx, x, y, object_data[idx].x_width, object_data[idx].y_width);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue