Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65111b1f authored by Prakash Gupta's avatar Prakash Gupta Committed by Liam Mark
Browse files

iommu: ignore scm_call return if SMC_ID not supported



Not all targets support hyp_assign. Ignore the return error if scm_call
return indicate that SMC_ID is not supported.

Change-Id: Ia3e25b1c7d1f4b24f6da0143901aa1cb9a8ea3e2
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 29a9c35b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -41,7 +41,7 @@ struct page *arm_smmu_errata_get_guard_page(int vmid)
		ret = hyp_assign_phys(page_to_phys(page), PAGE_ALIGN(size),
				&source_vm, 1,
				&dest_vm, &dest_perm, 1);
		if (ret) {
		if (ret && (ret != -EIO)) {
			__free_pages(page, get_order(size));
			page = NULL;
		}