cpufreq: intel_pstate: Add reasons for failure and debug messages
authorErwan Velu <e.velu@criteo.com>
Wed, 13 Feb 2019 08:58:35 +0000 (09:58 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Feb 2019 11:32:10 +0000 (12:32 +0100)
commit076b862c7e4409d2dcacfda19f7eaf8d07ab9200
treea71d5ad023aaaa8d3dec9ea83dd057c4fd94735d
parentb53c7348caf4de8ee447f9e6c2a1eb480199c042
cpufreq: intel_pstate: Add reasons for failure and debug messages

The init code path has several exceptions where the driver can
decide not to load.

As CONFIG_X86_INTEL_PSTATE is generally set to Y, the return code is
not reachable.  The initialization code is neither verbose of the
reason why it did choose to prematurely exit, so it is difficult for
a user to determine, on a given platform, why the driver didn't load
properly.

This patch is about reporting to the user the reason/context of why
the driver failed to load.  That is a precious hint when debugging
a platform.

Signed-off-by: Erwan Velu <e.velu@criteo.com>
[ rjw: Subject & changelog, minor fixups ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c