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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
2af89db1d6
commit
bae1cc7d41
@@ -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;
|
||||
|
Reference in New Issue
Block a user