mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 16:19:53 +00:00
iommu/tegra: Add missing spinlock initialization
Fix tegra_smmu_probe() to initialize client_lock spinlocks in per-address-space structures. Signed-off-by: Sami Liedes <sliedes@nvidia.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
This commit is contained in:
parent
88b62b915b
commit
0fde671b81
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* IOMMU API for SMMU in Tegra30
|
* IOMMU API for SMMU in Tegra30
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011-2012, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@ -1216,6 +1216,7 @@ static int tegra_smmu_probe(struct platform_device *pdev)
|
|||||||
as->pte_attr = _PTE_ATTR;
|
as->pte_attr = _PTE_ATTR;
|
||||||
|
|
||||||
spin_lock_init(&as->lock);
|
spin_lock_init(&as->lock);
|
||||||
|
spin_lock_init(&as->client_lock);
|
||||||
INIT_LIST_HEAD(&as->client);
|
INIT_LIST_HEAD(&as->client);
|
||||||
}
|
}
|
||||||
spin_lock_init(&smmu->lock);
|
spin_lock_init(&smmu->lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user