From 1bb3ec2941ce18f248d8b7685142dc0f27247f09 Mon Sep 17 00:00:00 2001 From: Sukwon Ryoo Date: Fri, 29 Jun 2018 16:25:38 +0900 Subject: [PATCH] [COMMON] chub: modify PMUCAL_SHUB log message Change-Id: Ia6801b1a759e082691cdd3dfa63cea35e75501a5 Signed-off-by: Sukwon Ryoo --- drivers/soc/samsung/cal-if/pmucal_rae.c | 14 +------------- drivers/soc/samsung/cal-if/pmucal_shub.c | 4 ++++ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/soc/samsung/cal-if/pmucal_rae.c b/drivers/soc/samsung/cal-if/pmucal_rae.c index 9156e05796be..40a805740099 100644 --- a/drivers/soc/samsung/cal-if/pmucal_rae.c +++ b/drivers/soc/samsung/cal-if/pmucal_rae.c @@ -425,24 +425,15 @@ int pmucal_rae_handle_shub_seq(struct pmucal_seq *seq, unsigned int seq_size) for (i = 0; i < seq_size; i++) { pmucal_rae_shub_seq_idx = i; - pr_info("%s: shub reset sequence %d pa: 0x%llx / va: 0x%llx\n", - __func__, i, - (unsigned long long int)seq[i].base_pa + seq[i].offset, - (unsigned long long int)seq[i].base_va + seq[i].offset); + switch (seq[i].access_type) { case PMUCAL_READ: pmucal_rae_read(&seq[i]); - pr_info("%s%s %s = 0x%08x\n", PMUCAL_PREFIX, "raw_read", seq[i].sfr_name, - __raw_readl(seq[i].base_va + seq[i].offset)); break; case PMUCAL_WRITE: reg = __raw_readl(seq[i].base_va + seq[i].offset); reg = (reg & ~seq[i].mask) | seq[i].value; - pr_info("%s%s %s = 0x%08x\n", PMUCAL_PREFIX, - "raw_write ", seq[i].sfr_name, reg); pmucal_rae_write(&seq[i]); - pr_info("%s%s %s = 0x%08x\n", PMUCAL_PREFIX, "raw_read(check)", - seq[i].sfr_name, __raw_readl(seq[i].base_va + seq[i].offset)); break; case PMUCAL_COND_READ: if (pmucal_rae_check_condition(&seq[i])) @@ -456,9 +447,6 @@ int pmucal_rae_handle_shub_seq(struct pmucal_seq *seq, unsigned int seq_size) ret = pmucal_rae_wait(&seq[i]); if (ret) return ret; - pr_info("%s%s\t%s = 0x%08x\n", PMUCAL_PREFIX, "raw_read(wait)", - seq[i].sfr_name, - __raw_readl(seq[i].base_va + seq[i].offset) & seq[i].mask); break; case PMUCAL_DELAY: udelay(seq[i].value); diff --git a/drivers/soc/samsung/cal-if/pmucal_shub.c b/drivers/soc/samsung/cal-if/pmucal_shub.c index 88a9ef4311c7..a5024fba7ef3 100644 --- a/drivers/soc/samsung/cal-if/pmucal_shub.c +++ b/drivers/soc/samsung/cal-if/pmucal_shub.c @@ -66,6 +66,7 @@ int pmucal_shub_reset_assert(void) return ret; } + pr_info("%s done\n", __func__); return 0; } @@ -92,6 +93,8 @@ int pmucal_shub_reset_release_config(void) PMUCAL_PREFIX, __func__); return ret; } + + pr_info("%s doing\n", __func__); return 0; } int pmucal_shub_reset_release(void) @@ -112,6 +115,7 @@ int pmucal_shub_reset_release(void) return ret; } + pr_info("%s done\n", __func__); return 0; } -- 2.20.1