From: Gayatri Kammela <gayatri.kammela@intel.com>
To: platform-driver-x86@vger.kernel.org
Cc: vishwanath.somayaji@intel.com, dvhart@infradead.org,
linux-kernel@vger.kernel.org, charles.d.prestopine@intel.com,
Gayatri Kammela <gayatri.kammela@intel.com>,
Peter Zijlstra <peterz@infradead.org>,
Srinivas Pandruvada <srinivas.pandruvada@intel.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Kan Liang <kan.liang@intel.com>,
"David E . Box" <david.e.box@intel.com>,
Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>,
Tony Luck <tony.luck@intel.com>
Subject: [PATCH v1 3/5] x86/intel_pmc_core: Make debugfs entry for pch_ip_power_gating_status conditional
Date: Thu, 26 Sep 2019 12:26:01 -0700 [thread overview]
Message-ID: <20190926192603.18647-4-gayatri.kammela@intel.com> (raw)
In-Reply-To: <20190926192603.18647-1-gayatri.kammela@intel.com>
Check if the platform supports and only then add a debugfs entry for PCH
IP power gating status.
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: David E. Box <david.e.box@intel.com>
Cc: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Gayatri Kammela <gayatri.kammela@intel.com>
---
drivers/platform/x86/intel_pmc_core.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c
index c6a0c29d3476..ea43a5989c96 100644
--- a/drivers/platform/x86/intel_pmc_core.c
+++ b/drivers/platform/x86/intel_pmc_core.c
@@ -788,8 +788,9 @@ static void pmc_core_dbgfs_register(struct pmc_dev *pmcdev)
debugfs_create_file("slp_s0_residency_usec", 0444, dir, pmcdev,
&pmc_core_dev_state);
- debugfs_create_file("pch_ip_power_gating_status", 0444, dir, pmcdev,
- &pmc_core_ppfear_fops);
+ if (pmcdev->map->pfear_sts)
+ debugfs_create_file("pch_ip_power_gating_status", 0444, dir,
+ pmcdev, &pmc_core_ppfear_fops);
debugfs_create_file("ltr_ignore", 0644, dir, pmcdev,
&pmc_core_ltr_ignore_ops);
--
2.17.1
next prev parent reply other threads:[~2019-09-26 18:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 19:25 [PATCH v1 0/5] Add Tiger Lake/Elkhart Lake support to pmc_core driver Gayatri Kammela
2019-09-26 19:25 ` [PATCH v1 1/5] x86/intel_pmc_core: Clean up: Remove comma after the termination line Gayatri Kammela
2019-09-26 19:26 ` [PATCH v1 2/5] x86/intel_pmc_core: Create platform dependent pmc bitmap structs Gayatri Kammela
2019-09-26 19:26 ` Gayatri Kammela [this message]
2019-09-26 19:26 ` [PATCH v1 4/5] platform/x86: Add Tiger Lake(TGL) platform support to intel_pmc_core driver Gayatri Kammela
2019-09-26 19:26 ` [PATCH v1 5/5] platform/x86: Add Atom based Elkhart Lake(EHL) " Gayatri Kammela
2019-09-27 6:01 ` [PATCH v1 0/5] Add Tiger Lake/Elkhart Lake support to pmc_core driver Andy Shevchenko
2019-09-27 6:06 ` Andy Shevchenko
2019-09-30 18:27 ` Kammela, Gayatri
2019-09-30 18:23 ` Kammela, Gayatri
2019-10-28 16:41 ` Kammela, Gayatri
2019-11-07 15:27 ` Andy Shevchenko
2019-11-12 4:08 ` Kammela, Gayatri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190926192603.18647-4-gayatri.kammela@intel.com \
--to=gayatri.kammela@intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=charles.d.prestopine@intel.com \
--cc=david.e.box@intel.com \
--cc=dvhart@infradead.org \
--cc=kan.liang@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rajneesh.bhardwaj@intel.com \
--cc=srinivas.pandruvada@intel.com \
--cc=tony.luck@intel.com \
--cc=vishwanath.somayaji@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).