From patchwork Wed Dec 28 00:10:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srinivas pandruvada X-Patchwork-Id: 37049 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1644779wrt; Tue, 27 Dec 2022 16:21:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXsf9RAayYPdhVQ9zLce8hsPZUuXLjZdrTRCkz5PeAXL484m5N+YRA9zB6Xtzx3OmSr82gJh X-Received: by 2002:a05:6a00:1da5:b0:577:9807:2db8 with SMTP id z37-20020a056a001da500b0057798072db8mr27697715pfw.3.1672186917906; Tue, 27 Dec 2022 16:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672186917; cv=none; d=google.com; s=arc-20160816; b=lU4tfR/rBeNhi49HA+XuHpmg/fa2gCtx9/q/9l9oJI2P6Gun8TtHmLtomS/S2TQLu+ BIX60zyaiWod9J6mfIOBvVDstr7VF2YEoSZzY1YJPIqNyzklUyVSQHULciOg/5cKwli3 k1z9K/VHMAMw4B1xLr8dbx7t/fGVIolYSSBfOV9cYFsincUqWo5r2Utvl7XMP7Yheje2 miJOPuZW5rMdDnDF4S0Hi4k0VWb9aUKvGajdJvXkhTbZemcbkeGm/Pee7RviwK0hw2WW oMTzmSbfw7viynCfUT+nUzhCNpu31JY/DJcHqSrlUN5ts6+hWVETdEi9d+xpKw7O5+Bd GAPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=A40jALOv+UXH9Yog+mbFqi8gujjthkj+RIEMaojJg8Q=; b=gTJyV48TSZw47Gb8B/ZEqFnTCa+2bxdmxegcXYHAhsrd72p4s/7MPsgrReDzyRDkTQ Bl6F2qS6ztGX89fogvxrknC/MoHGa5bSlVF6Letq77Vbl3c4uvu78sOS77ZJE2UEIc+U 9LcLGhuqBUHXIxqBu7NhHk4FkEFtKyL7xezsXfpCdN8eGa+/YM5A43xt0qq/z86ooLeR zA6tRQs0iXevi+cYPiAZeGR1o3spRAer/blE+msnU2MQE0YIPTX3Ka94XfZ5PSq+fluf VDOExjYXd64Sa9genlyAh5CA4oV0LJ8p2IhLpAnd7jGbE6H0gIdeg/IqX1Zs0y8sfM+e 8lxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lgAfibZs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h185-20020a6253c2000000b005788695bef5si14533797pfb.154.2022.12.27.16.21.41; Tue, 27 Dec 2022 16:21:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lgAfibZs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbiL1AKM (ORCPT + 99 others); Tue, 27 Dec 2022 19:10:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbiL1AKJ (ORCPT ); Tue, 27 Dec 2022 19:10:09 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D64DF640E; Tue, 27 Dec 2022 16:10:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672186208; x=1703722208; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9ghHj+7n5QxlxDJTPpbTtR6onyMlMoEJnX1YQU4DYpA=; b=lgAfibZssH1IasVGYcDzjCAoBpYZsmtIlQKjaiCuoTG0N81Z1Sr3Rrkv yxMuq1eFrnvyqQCn1O96BpHGA5h3t2Mlos3vCTVhXxukULLkFeRUYtXqQ YxUfWARbloYpV+HnrYaELTvV4+OcRmIPPU7DtcyTW4Gd4S/Yy0gl6yREc 85WjFZ2RoWUcZr/jc1wVyQxYqXlJOHsvM8cfhyEyyj/Jx76iEh2sidgXU hanTdohZfyudmgZNFUM7dtdsKxaML5EFdnIOfjTslVw+xY8NALRXxmz1r 2/YiKwVZFOm0JQ9DU9hvwvWe9JiCoHbqkxQ3/ToufI7FvfzEwQtr6gZlT w==; X-IronPort-AV: E=McAfee;i="6500,9779,10573"; a="308531228" X-IronPort-AV: E=Sophos;i="5.96,279,1665471600"; d="scan'208";a="308531228" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2022 16:10:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10573"; a="795492241" X-IronPort-AV: E=Sophos;i="5.96,279,1665471600"; d="scan'208";a="795492241" Received: from spandruv-desk.jf.intel.com ([10.54.75.8]) by fmsmga001.fm.intel.com with ESMTP; 27 Dec 2022 16:10:07 -0800 From: Srinivas Pandruvada To: rafael@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada , stable@vger.kernel.org Subject: [PATCH] thermal/drivers/int340x: Add missing attribute for data rate base Date: Tue, 27 Dec 2022 16:10:05 -0800 Message-Id: <20221228001005.2690278-1-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753415069488001057?= X-GMAIL-MSGID: =?utf-8?q?1753415069488001057?= commit 473be51142ad ("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: 473be51142ad ("thermal: int340x: processor_thermal: Add RFIM driver") Cc: stable@vger.kernel.org # v5.11+ Signed-off-by: Srinivas Pandruvada --- .../thermal/intel/int340x_thermal/processor_thermal_rfim.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c index 8c42e7662033..92ed1213fe37 100644 --- a/drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c +++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_rfim.c @@ -172,6 +172,7 @@ static const struct attribute_group fivr_attribute_group = { RFIM_SHOW(rfi_restriction_run_busy, 1) RFIM_SHOW(rfi_restriction_err_code, 1) RFIM_SHOW(rfi_restriction_data_rate, 1) +RFIM_SHOW(rfi_restriction_data_rate_base, 1) RFIM_SHOW(ddr_data_rate_point_0, 1) RFIM_SHOW(ddr_data_rate_point_1, 1) RFIM_SHOW(ddr_data_rate_point_2, 1) @@ -181,11 +182,13 @@ RFIM_SHOW(rfi_disable, 1) RFIM_STORE(rfi_restriction_run_busy, 1) RFIM_STORE(rfi_restriction_err_code, 1) RFIM_STORE(rfi_restriction_data_rate, 1) +RFIM_STORE(rfi_restriction_data_rate_base, 1) RFIM_STORE(rfi_disable, 1) static DEVICE_ATTR_RW(rfi_restriction_run_busy); static DEVICE_ATTR_RW(rfi_restriction_err_code); static DEVICE_ATTR_RW(rfi_restriction_data_rate); +static DEVICE_ATTR_RW(rfi_restriction_data_rate_base); static DEVICE_ATTR_RO(ddr_data_rate_point_0); static DEVICE_ATTR_RO(ddr_data_rate_point_1); static DEVICE_ATTR_RO(ddr_data_rate_point_2); @@ -248,6 +251,7 @@ static struct attribute *dvfs_attrs[] = { &dev_attr_rfi_restriction_run_busy.attr, &dev_attr_rfi_restriction_err_code.attr, &dev_attr_rfi_restriction_data_rate.attr, + &dev_attr_rfi_restriction_data_rate_base.attr, &dev_attr_ddr_data_rate_point_0.attr, &dev_attr_ddr_data_rate_point_1.attr, &dev_attr_ddr_data_rate_point_2.attr,