aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/memory
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2018-12-12 15:38:57 -0500
committerJoerg Roedel <jroedel@suse.de>2019-01-16 07:54:13 -0500
commit568ece5bab24d41bec4d1610439277032840a133 (patch)
tree474d2c68733e8cf7a5a0ab29f6c728978828a8c7 /drivers/memory
parentce2785a75dbca27375f3723f4e697a2a8dc096ee (diff)
memory: tegra: Do not try to probe SMMU on Tegra20
Tegra20 doesn't have SMMU. Move out checking of the SMMU presence from the SMMU driver into the Memory Controller driver. This change makes code consistent in regards to how GART/SMMU presence checking is performed. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/memory')
-rw-r--r--drivers/memory/tegra/mc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/memory/tegra/mc.c b/drivers/memory/tegra/mc.c
index e684e234361a..3545868c51c0 100644
--- a/drivers/memory/tegra/mc.c
+++ b/drivers/memory/tegra/mc.c
@@ -695,11 +695,13 @@ static int tegra_mc_probe(struct platform_device *pdev)
695 dev_err(&pdev->dev, "failed to register reset controller: %d\n", 695 dev_err(&pdev->dev, "failed to register reset controller: %d\n",
696 err); 696 err);
697 697
698 if (IS_ENABLED(CONFIG_TEGRA_IOMMU_SMMU)) { 698 if (IS_ENABLED(CONFIG_TEGRA_IOMMU_SMMU) && mc->soc->smmu) {
699 mc->smmu = tegra_smmu_probe(&pdev->dev, mc->soc->smmu, mc); 699 mc->smmu = tegra_smmu_probe(&pdev->dev, mc->soc->smmu, mc);
700 if (IS_ERR(mc->smmu)) 700 if (IS_ERR(mc->smmu)) {
701 dev_err(&pdev->dev, "failed to probe SMMU: %ld\n", 701 dev_err(&pdev->dev, "failed to probe SMMU: %ld\n",
702 PTR_ERR(mc->smmu)); 702 PTR_ERR(mc->smmu));
703 mc->smmu = NULL;
704 }
703 } 705 }
704 706
705 if (IS_ENABLED(CONFIG_TEGRA_IOMMU_GART) && !mc->soc->smmu) { 707 if (IS_ENABLED(CONFIG_TEGRA_IOMMU_GART) && !mc->soc->smmu) {