/* This function checks whether the given ID is supported or not, using PSCI_FEATURES command.PSCI_FEATURES is supported from version 1.0 onwards.  */
static int psci_features_check(unsigned long function_id)
/* This function checks whether the given ID is supported or not, using PSCI_FEATURES command.PSCI_FEATURES is supported from version 1.0 onwards.  */
static int psci_features_check(unsigned long function_id)
{
	if (!(PSCI_VERSION_MAJOR(psci_data.ver) >= 1)) {
		LOG_ERR("Function ID %lu not supported", function_id);
		return -ENOTSUP;
	}
	return psci_data.invoke_psci_fn(PSCI_FN_NATIVE(1_0, PSCI_FEATURES), function_id, 0, 0);
}