From a90e01d0225f592aac105c489c5d5a053c3f65bb Mon Sep 17 00:00:00 2001 From: qiurp1 Date: Wed, 25 May 2022 14:23:29 +0800 Subject: [PATCH] ONELI: add sar sensor log add sar sensor log Change-Id: I73bfb9692316d26971e04ff894ab104accb63181 Signed-off-by: qiurp1 Reviewed-on: https://gerrit.mot.com/2279259 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jiyue Cui Reviewed-by: Tao Sun Submit-Approved: Jira Key --- drivers/misc/sx937x_multi/sx937x_multi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/misc/sx937x_multi/sx937x_multi.c b/drivers/misc/sx937x_multi/sx937x_multi.c index f077cbe815bb..5e48d8dd30b1 100644 --- a/drivers/misc/sx937x_multi/sx937x_multi.c +++ b/drivers/misc/sx937x_multi/sx937x_multi.c @@ -131,13 +131,14 @@ static void sx93XX_worker_func(struct work_struct *work) /* since we are not in an interrupt don't need to disable irq. */ status = this->refreshStatus(this); counter = -1; - LOG_DBG("Worker_func - Refresh Status %d, use_timer_in_irq:%d\n", status, this->useIrqTimer); - + if(status != 0){ + LOG_INFO("Worker_func - Refresh Status %d, use_timer_in_irq:%d\n", status, this->useIrqTimer); + } while((++counter) < MAX_NUM_STATUS_BITS) /* counter start from MSB */ { if (((status>>counter) & 0x01) && (this->statusFunc[counter])) { - LOG_DBG("SX937x Function Pointer Found. Calling\n"); + LOG_INFO("SX937x Function Pointer Found. Calling counter==%d\n",counter); this->statusFunc[counter](this); } } @@ -874,7 +875,7 @@ static void touchProcess(psx93XX_t this) if (this) { sx937x_i2c_read_16bit(this->bus, SX937X_DEVICE_STATUS_A, &i); - LOG_DBG("touchProcess STAT0_REG:0x%08x\n", i); + LOG_INFO("touchProcess STAT0_REG:0x%x val 0x%08x\n", SX937X_DEVICE_STATUS_A, i); buttons = this->hw->buttons; numberOfButtons = this->hw->buttonSize; @@ -938,7 +939,6 @@ static void touchProcess(psx93XX_t this) } } } - LOG_INFO("Leaving touchProcess()\n"); } }