platform/x86: intel_pmc_core: fix: Replace dev_dbg macro with dev_info()
authorGayatri Kammela <gayatri.kammela@intel.com>
Wed, 7 Oct 2020 03:51:07 +0000 (20:51 -0700)
committerHans de Goede <hdegoede@redhat.com>
Wed, 7 Oct 2020 21:07:38 +0000 (23:07 +0200)
commit46461f8709ed1998bdfae35296ba63ab12ec50a9
tree749928e3e5e36dd86e015c762dad6331d07f01fe
parent68cb1a977e5e8b9531e7bf4fbfbde5ce1d19537b
platform/x86: intel_pmc_core: fix: Replace dev_dbg macro with dev_info()

dev_dbg macro is used to dump the debug registers in resume from an S0ix
failure. However, when CONFIG_DYNAMIC_DEBUG is not set, the user may not be
able to find the debug dump on an S0ix failure which defeats the purpose.
The output of these messages is already controlled by a module parameter,
warn_on_s0ix_failures, making it a 2 step process to enable anyway when
CONFIG_DYNAMIC_DEBUG is set.

Hence, replace dev_dbg with dev_info, allowing the control of the messages
solely through the module parameter which is N by default.

Fixes commit 913f984a8347 ("platform/x86: intel_pmc_core: Add an
additional parameter to pmc_core_lpm_display()")

Cc: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Gayatri Kammela <gayatri.kammela@intel.com>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Rajneesh Bhardwaj <irenic.rajneesh@gmail.com>
Link: https://lore.kernel.org/r/20201007035108.31078-4-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel_pmc_core.c