Skip to content

Commit b878d3b

Browse files
spandruvadarafaeljw
authored andcommitted
thermal: int340x: Add missing attribute for data rate base
Commit 473be51 ("thermal: int340x: processor_thermal: Add RFIM driver")' added rfi_restriction_data_rate_base string, mmio details and documentation, but missed adding attribute to sysfs. Add missing sysfs attribute. Fixes: 473be51 ("thermal: int340x: processor_thermal: Add RFIM driver") Cc: 5.11+ <[email protected]> # v5.11+ Signed-off-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 1b929c0 commit b878d3b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ static const struct attribute_group fivr_attribute_group = {
172172
RFIM_SHOW(rfi_restriction_run_busy, 1)
173173
RFIM_SHOW(rfi_restriction_err_code, 1)
174174
RFIM_SHOW(rfi_restriction_data_rate, 1)
175+
RFIM_SHOW(rfi_restriction_data_rate_base, 1)
175176
RFIM_SHOW(ddr_data_rate_point_0, 1)
176177
RFIM_SHOW(ddr_data_rate_point_1, 1)
177178
RFIM_SHOW(ddr_data_rate_point_2, 1)
@@ -181,11 +182,13 @@ RFIM_SHOW(rfi_disable, 1)
181182
RFIM_STORE(rfi_restriction_run_busy, 1)
182183
RFIM_STORE(rfi_restriction_err_code, 1)
183184
RFIM_STORE(rfi_restriction_data_rate, 1)
185+
RFIM_STORE(rfi_restriction_data_rate_base, 1)
184186
RFIM_STORE(rfi_disable, 1)
185187

186188
static DEVICE_ATTR_RW(rfi_restriction_run_busy);
187189
static DEVICE_ATTR_RW(rfi_restriction_err_code);
188190
static DEVICE_ATTR_RW(rfi_restriction_data_rate);
191+
static DEVICE_ATTR_RW(rfi_restriction_data_rate_base);
189192
static DEVICE_ATTR_RO(ddr_data_rate_point_0);
190193
static DEVICE_ATTR_RO(ddr_data_rate_point_1);
191194
static DEVICE_ATTR_RO(ddr_data_rate_point_2);
@@ -248,6 +251,7 @@ static struct attribute *dvfs_attrs[] = {
248251
&dev_attr_rfi_restriction_run_busy.attr,
249252
&dev_attr_rfi_restriction_err_code.attr,
250253
&dev_attr_rfi_restriction_data_rate.attr,
254+
&dev_attr_rfi_restriction_data_rate_base.attr,
251255
&dev_attr_ddr_data_rate_point_0.attr,
252256
&dev_attr_ddr_data_rate_point_1.attr,
253257
&dev_attr_ddr_data_rate_point_2.attr,

0 commit comments

Comments
 (0)