OSDN Git Service

mfd: intel_pmt: Fix nuisance messages and handling of disabled capabilities
authorDavid E. Box <david.e.box@linux.intel.com>
Wed, 24 Feb 2021 20:10:04 +0000 (12:10 -0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 10 Mar 2021 10:48:46 +0000 (10:48 +0000)
commita1a5c1c3df282dc122508a17500317266ef19e46
tree3b442a571a071f40a8c8643e2ea611469255dcd9
parenta38fd8748464831584a19438cbb3082b5a2dab15
mfd: intel_pmt: Fix nuisance messages and handling of disabled capabilities

Some products will be available that have PMT capabilities that are not
supported. Remove the warnings in this instance to avoid nuisance messages
and confusion.

Also return an error code for capabilities that are disabled by quirk to
prevent them from keeping the driver loaded if only disabled capabilities
are found.

Fixes: 4f8217d5b0ca ("mfd: Intel Platform Monitoring Technology support")
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel_pmt.c