Commit bab44f9f authored by Srinivas Pandruvada's avatar Srinivas Pandruvada Committed by Yingbao Jia
Browse files

platform/x86/intel-uncore-freq: Return error on write frequency

mainline inclusion
from mainline-v6.4-rc2
commit 75e406b5
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I8WOEG

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=75e406b540c3eca67625d97bbefd4e3787eafbfe



-------------------------------------

Currently when the uncore_write() returns error, it is silently
ignored. Return error to user space when uncore_write() fails.

Intel-SIG: commit 75e406b5 platform/x86/intel-uncore-freq: Return error on write frequency.
Backport Intel-uncore-freq driver support on TPMI.

Fixes: 49a474c7 ("platform/x86: Add support for Uncore frequency control")
Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: default avatarZhang Rui <rui.zhang@intel.com>
Tested-by: default avatarWendy Wang <wendy.wang@intel.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230418153230.679094-1-srinivas.pandruvada@linux.intel.com


Cc: stable@vger.kernel.org
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
[ Yingbao Jia: amend commit log ]
Signed-off-by: default avatarYingbao Jia <yingbao.jia@intel.com>
parent beaafe9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment