mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
sarsensor:optimise log output for sx9375
Unify the log output of the SAR sensor,At present, I find that SarSensor has too much log output, which will affect the startup of Bringup phase. modify dev_info to LOG_DBG Change-Id: I35331976db7d0dfb0694f472649b7e09a42a6cc2 Signed-off-by: chenlj2 <chenlj2@motorola.com> Reviewed-on: https://gerrit.mot.com/2367671 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Minghui Wei <weimh1@motorola.com> Reviewed-by: Jiyue Cui <cuijy2@lenovo.com> Reviewed-by: Tao Sun <suntao2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
0287d1a6e0
commit
db9606c531
1 changed files with 6 additions and 9 deletions
|
|
@ -261,7 +261,7 @@ static void read_dbg_raw(psx93XX_t this)
|
|||
ref_ph_c = pdata->ref_phase_c;
|
||||
|
||||
sx937x_i2c_read_16bit(this, SX937X_DEVICE_STATUS_A, &uData);
|
||||
dev_info(this->pdev, "SX937X_STAT0_REG= 0x%X\n", uData);
|
||||
LOG_DBG("SX937X_STAT0_REG= 0x%X\n", uData);
|
||||
|
||||
if(ref_ph_a != -1)
|
||||
{
|
||||
|
|
@ -303,8 +303,7 @@ static void read_dbg_raw(psx93XX_t this)
|
|||
off = (u16)(uData & 0x3FFF);
|
||||
state = psmtcButtons[ph].state;
|
||||
|
||||
dev_info(this->pdev,
|
||||
"SMTC_DBG PH= %d USE= %d RAW= %d PH%d_USE= %d PH%d_USE= %d PH%d_USE= %d STATE= %d AVG= %d DIFF= %d OFF= %d ADC_MIN= %d ADC_MAX= %d DLT= %d SMTC_END\n",
|
||||
LOG_DBG("SMTC_DBG PH= %d USE= %d RAW= %d PH%d_USE= %d PH%d_USE= %d PH%d_USE= %d STATE= %d AVG= %d DIFF= %d OFF= %d ADC_MIN= %d ADC_MAX= %d DLT= %d SMTC_END\n",
|
||||
ph, ant_use, ant_raw, ref_ph_a, ref_a_use, ref_ph_b, ref_b_use, ref_ph_c, ref_c_use, state, avg, diff, off, adc_min, adc_max, use_flt_dlt_var);
|
||||
}
|
||||
|
||||
|
|
@ -328,10 +327,10 @@ static void read_rawData(psx93XX_t this)
|
|||
ref_ph_a = pdata->ref_phase_a;
|
||||
ref_ph_b = pdata->ref_phase_b;
|
||||
ref_ph_c = pdata->ref_phase_c;
|
||||
dev_info(this->pdev, "[SX937x] ref_ph_a= %d ref_ph_b= %d ref_ph_c= %d\n", ref_ph_a, ref_ph_b, ref_ph_c);
|
||||
LOG_DBG("[SX937x] ref_ph_a= %d ref_ph_b= %d ref_ph_c= %d\n", ref_ph_a, ref_ph_b, ref_ph_c);
|
||||
|
||||
sx937x_i2c_read_16bit(this, SX937X_DEVICE_STATUS_A, &uData);
|
||||
dev_info(this->pdev, "SX937X_DEVICE_STATUS_A= 0x%X\n", uData);
|
||||
LOG_DBG("SX937X_DEVICE_STATUS_A= 0x%X\n", uData);
|
||||
sx937x_i2c_read_16bit(this, SX937X_DEBUG_SETUP, &dbg_ph);
|
||||
dbg_ph = (dbg_ph >> 3) & 0x7;
|
||||
sx937x_i2c_read_16bit(this, SX937X_DEBUG_READBACK_3, &dlt_hex);
|
||||
|
|
@ -366,12 +365,10 @@ static void read_rawData(psx93XX_t this)
|
|||
|
||||
state = psmtcButtons[csx].state;
|
||||
|
||||
dev_info(this->pdev,
|
||||
"SMTC_DAT PH= %d DIFF= %d USE= %d PH%d_USE= %d PH%d_USE= %d PH%d_USE= %d STATE= %d OFF= %d AVG= %d SMTC_END\n",
|
||||
LOG_DBG("SMTC_DAT PH= %d DIFF= %d USE= %d PH%d_USE= %d PH%d_USE= %d PH%d_USE= %d STATE= %d OFF= %d AVG= %d SMTC_END\n",
|
||||
csx, diff, useful, ref_ph_a, ref_a_use, ref_ph_b, ref_b_use, ref_ph_c, ref_c_use, state, offset, average);
|
||||
|
||||
dev_info(this->pdev,
|
||||
"SMTC_HEX PH= %d USE= 0x%X AVG= 0x%X DIF= 0x%X PH%d_DLT= 0x%X SMTC_END\n",
|
||||
LOG_DBG("SMTC_HEX PH= %d USE= 0x%X AVG= 0x%X DIF= 0x%X PH%d_DLT= 0x%X SMTC_END\n",
|
||||
csx, use_hex, avg_hex, dif_hex, dbg_ph, dlt_hex);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue