[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230104021445.47484-1-quic_bqiang@quicinc.com>
Date: Wed, 4 Jan 2023 10:14:45 +0800
From: Baochen Qiang <quic_bqiang@...cinc.com>
To: <manivannan.sadhasivam@...aro.org>
CC: <hemantk@...eaurora.org>, <linux-arm-msm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <ath11k@...ts.infradead.org>
Subject: [PATCH] bus: mhi: host: Change the log levels for SYS_ERR event
Currently no log printed when SYS_ERR happens, this makes
debug quite hard, so change log level to make it noisy.
Signed-off-by: Baochen Qiang <quic_bqiang@...cinc.com>
---
drivers/bus/mhi/host/boot.c | 2 +-
drivers/bus/mhi/host/main.c | 6 +++---
drivers/bus/mhi/host/pm.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/bus/mhi/host/boot.c b/drivers/bus/mhi/host/boot.c
index 1c69feee1703..d8bceabcee63 100644
--- a/drivers/bus/mhi/host/boot.c
+++ b/drivers/bus/mhi/host/boot.c
@@ -102,7 +102,7 @@ static int __mhi_download_rddm_in_panic(struct mhi_controller *mhi_cntrl)
goto error_exit_rddm;
if (ee != MHI_EE_RDDM) {
- dev_dbg(dev, "Trigger device into RDDM mode using SYS ERR\n");
+ dev_info(dev, "Trigger device into RDDM mode using SYS ERR\n");
mhi_set_mhi_state(mhi_cntrl, MHI_STATE_SYS_ERR);
dev_dbg(dev, "Waiting for device to enter RDDM\n");
diff --git a/drivers/bus/mhi/host/main.c b/drivers/bus/mhi/host/main.c
index df0fbfee7b78..54c948ed7f47 100644
--- a/drivers/bus/mhi/host/main.c
+++ b/drivers/bus/mhi/host/main.c
@@ -497,7 +497,7 @@ irqreturn_t mhi_intvec_threaded_handler(int irq_number, void *priv)
TO_MHI_EXEC_STR(ee), mhi_state_str(state));
if (state == MHI_STATE_SYS_ERR) {
- dev_dbg(dev, "System error detected\n");
+ dev_err(dev, "System error detected\n");
pm_state = mhi_tryset_pm_state(mhi_cntrl,
MHI_PM_SYS_ERR_DETECT);
}
@@ -871,7 +871,7 @@ int mhi_process_ctrl_ev_ring(struct mhi_controller *mhi_cntrl,
{
enum mhi_pm_state pm_state;
- dev_dbg(dev, "System error detected\n");
+ dev_err(dev, "System error detected\n");
write_lock_irq(&mhi_cntrl->pm_lock);
pm_state = mhi_tryset_pm_state(mhi_cntrl,
MHI_PM_SYS_ERR_DETECT);
@@ -1085,7 +1085,7 @@ void mhi_ctrl_ev_task(unsigned long data)
write_lock_irq(&mhi_cntrl->pm_lock);
state = mhi_get_mhi_state(mhi_cntrl);
if (state == MHI_STATE_SYS_ERR) {
- dev_dbg(dev, "System error detected\n");
+ dev_err(dev, "System error detected\n");
pm_state = mhi_tryset_pm_state(mhi_cntrl,
MHI_PM_SYS_ERR_DETECT);
}
diff --git a/drivers/bus/mhi/host/pm.c b/drivers/bus/mhi/host/pm.c
index 083459028a4b..570fdd4db442 100644
--- a/drivers/bus/mhi/host/pm.c
+++ b/drivers/bus/mhi/host/pm.c
@@ -1223,7 +1223,7 @@ int mhi_force_rddm_mode(struct mhi_controller *mhi_cntrl)
if (mhi_cntrl->ee == MHI_EE_RDDM)
return 0;
- dev_dbg(dev, "Triggering SYS_ERR to force RDDM state\n");
+ dev_info(dev, "Triggering SYS_ERR to force RDDM state\n");
mhi_set_mhi_state(mhi_cntrl, MHI_STATE_SYS_ERR);
/* Wait for RDDM event */
--
2.25.1
Powered by blists - more mailing lists