diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2016-02-07 16:35:18 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 17:47:20 -0500 |
commit | 439a74b3373dab4214b4191d50dfb1d78be5b18e (patch) | |
tree | 85689908685b4ed54e64e7b54d4a2ac2f4bbff9f | |
parent | 26900254827878c4f98c0d169f8ba290099b1ef3 (diff) |
mei: debugfs: allow hbm features list dump in earlier stages
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/mei/debugfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
165 | pos += scnprintf(buf + pos, bufsz - pos, "hbm: %s\n", | 165 | pos += scnprintf(buf + pos, bufsz - pos, "hbm: %s\n", |
166 | mei_hbm_state_str(dev->hbm_state)); | 166 | mei_hbm_state_str(dev->hbm_state)); |
167 | 167 | ||
168 | if (dev->hbm_state == MEI_HBM_STARTED) { | 168 | if (dev->hbm_state >= MEI_HBM_ENUM_CLIENTS && |
169 | dev->hbm_state <= MEI_HBM_STARTED) { | ||
169 | pos += scnprintf(buf + pos, bufsz - pos, "hbm features:\n"); | 170 | pos += scnprintf(buf + pos, bufsz - pos, "hbm features:\n"); |
170 | pos += scnprintf(buf + pos, bufsz - pos, "\tPG: %01d\n", | 171 | pos += scnprintf(buf + pos, bufsz - pos, "\tPG: %01d\n", |
171 | dev->hbm_f_pg_supported); | 172 | dev->hbm_f_pg_supported); |