Commit 9c56679d authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Krzysztof Kozlowski

memory: tegra124-emc: Continue probing if timings are missing in device-tree

EMC driver will become mandatory after turning it into interconnect
provider because interconnect users, like display controller driver, will
fail to probe using newer device-trees that have interconnect properties.
Thus make EMC driver to probe even if timings are missing in device-tree.
Tested-by: default avatarNicolas Chauvet <kwizart@gmail.com>
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20201228154920.18846-3-digetx@gmail.comSigned-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 281462e5
...@@ -1201,23 +1201,15 @@ static int tegra_emc_probe(struct platform_device *pdev) ...@@ -1201,23 +1201,15 @@ static int tegra_emc_probe(struct platform_device *pdev)
ram_code = tegra_read_ram_code(); ram_code = tegra_read_ram_code();
np = tegra_emc_find_node_by_ram_code(pdev->dev.of_node, ram_code); np = tegra_emc_find_node_by_ram_code(pdev->dev.of_node, ram_code);
if (!np) { if (np) {
dev_err(&pdev->dev, err = tegra_emc_load_timings_from_dt(emc, np);
"no memory timings for RAM code %u found in DT\n", of_node_put(np);
ram_code); if (err)
return -ENOENT; return err;
} } else {
dev_info(&pdev->dev,
err = tegra_emc_load_timings_from_dt(emc, np); "no memory timings for RAM code %u found in DT\n",
of_node_put(np); ram_code);
if (err)
return err;
if (emc->num_timings == 0) {
dev_err(&pdev->dev,
"no memory timings for RAM code %u registered\n",
ram_code);
return -ENOENT;
} }
err = emc_init(emc); err = emc_init(emc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment