diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2014-08-21 14:29:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-23 22:57:48 -0700 |
commit | bae1cc7d41fd3048f55c21a6e59c35a3f0abaafe (patch) | |
tree | 368091f74129915864cc221147dafd8439ec0dec /drivers/misc/mei/hw-me.c | |
parent | 2af89db1d61a872e5f2f1fb18d44cf5d8f5f6a2a (diff) | |
download | lwn-bae1cc7d41fd3048f55c21a6e59c35a3f0abaafe.tar.gz lwn-bae1cc7d41fd3048f55c21a6e59c35a3f0abaafe.zip |
mei: extract supported features from the hbm version
extract supported hbm features and commands from the hbm version
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hw-me.c')
-rw-r--r-- | drivers/misc/mei/hw-me.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c index caf0da335994..498bd42bca25 100644 --- a/drivers/misc/mei/hw-me.c +++ b/drivers/misc/mei/hw-me.c @@ -574,11 +574,7 @@ static bool mei_me_pg_is_enabled(struct mei_device *dev) if ((reg & ME_PGIC_HRA) == 0) goto notsupported; - if (dev->version.major_version < HBM_MAJOR_VERSION_PGI) - goto notsupported; - - if (dev->version.major_version == HBM_MAJOR_VERSION_PGI && - dev->version.minor_version < HBM_MINOR_VERSION_PGI) + if (!dev->hbm_f_pg_supported) goto notsupported; return true; |