Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1328616 > unrolled thread

[char-misc-next 02/27] mei: debugfs: allow hbm features list dump in earlier stages

Started byTomas Winkler <tomas.winkler@intel.com>
First post2016-02-07 22:50 +0100
Last post2016-02-07 22:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [char-misc-next 02/27] mei: debugfs: allow hbm features list dump in earlier stages Tomas Winkler <tomas.winkler@intel.com> - 2016-02-07 22:50 +0100

#1328616 — [char-misc-next 02/27] mei: debugfs: allow hbm features list dump in earlier stages

FromTomas Winkler <tomas.winkler@intel.com>
Date2016-02-07 22:50 +0100
Subject[char-misc-next 02/27] mei: debugfs: allow hbm features list dump in earlier stages
Message-ID<qZFns-3H1-13@gated-at.bofh.it>
From: Alexander Usyskin <alexander.usyskin@intel.com>

HBM features list is ready while sending enumerate request and
enumerating clients, output it to debugfs in these states too.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
 drivers/misc/mei/debugfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/misc/mei/debugfs.c b/drivers/misc/mei/debugfs.c
index 9f5410b98688..6bdd75424fe8 100644
--- a/drivers/misc/mei/debugfs.c
+++ b/drivers/misc/mei/debugfs.c
@@ -165,7 +165,8 @@ static ssize_t mei_dbgfs_read_devstate(struct file *fp, char __user *ubuf,
 	pos += scnprintf(buf + pos, bufsz - pos, "hbm: %s\n",
 			mei_hbm_state_str(dev->hbm_state));
 
-	if (dev->hbm_state == MEI_HBM_STARTED) {
+	if (dev->hbm_state >= MEI_HBM_ENUM_CLIENTS &&
+	    dev->hbm_state <= MEI_HBM_STARTED) {
 		pos += scnprintf(buf + pos, bufsz - pos, "hbm features:\n");
 		pos += scnprintf(buf + pos, bufsz - pos, "\tPG: %01d\n",
 				 dev->hbm_f_pg_supported);
-- 
2.4.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web