Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86: ISST: Add missing write block check

If writes are blocked, then return error during SST-CP enable command.
Add missing write block check in this code path.

Fixes: 8bed9ff7dbcc ("platform/x86: ISST: Process read/write blocked feature status")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260107060256.1634188-2-srinivas.pandruvada@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Srinivas Pandruvada and committed by
Ilpo Järvinen
0e5aef27 c4a06909

+3
+3
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c
··· 612 612 return -EINVAL; 613 613 614 614 if (core_power.get_set) { 615 + if (power_domain_info->write_blocked) 616 + return -EPERM; 617 + 615 618 _write_cp_info("cp_enable", core_power.enable, SST_CP_CONTROL_OFFSET, 616 619 SST_CP_ENABLE_START, SST_CP_ENABLE_WIDTH, SST_MUL_FACTOR_NONE) 617 620 _write_cp_info("cp_prio_type", core_power.priority_type, SST_CP_CONTROL_OFFSET,