memory: tegra: Don't invoke Tegra30+ specific memory timing setup on Tegra20
Subsystems (2)
PATCH 1/1 memory: tegra: Don't invoke Tegra30+ specific memory timing setup on Tegra20
This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory timings for RAM code 0 registered" warning message during of kernels boot-up on Tegra20.
--- drivers/memory/tegra/mc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/memory/tegra/mc.c +6 -5
@@ -664,12 +664,13 @@ static int tegra_mc_probe(struct platform_device *pdev) } isr = tegra_mc_irq; - } - err =tegra_mc_setup_timings (mc); -if (err <0 ) { -dev_err (&pdev->dev,"failed to setup timings: %d\n" , err); -return err; + err =tegra_mc_setup_timings (mc); +if (err <0 ) { +dev_err (&pdev->dev,"failed to setup timings: %d\n" , + err); +return err; + } } mc->irq =platform_get_irq (pdev,0 );
Signature · 1 line
2.18.0
Jon Hunter
maintainerQuoted 3 lines · Dmitry Osipenko
This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory timings for RAM code 0 registered" warning message during of kernels boot-up on Tegra20.
Looking at the tegra20-emc.txt bindings doc [0], the 'nvidia,ram-code' property is also valid for Tegra20. In fact, I see this warning on the Tegra30 Cardhu because this property is not populated. So I think that this warning is valid and harmless.
Cheers
Jon
[0] Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt
Signature · 1 line
nvpublic
Quoted 10 lines · On Thursday, 19 July 2018 18:30:48 MSK Jon Hunter wrote:
Quoted 3 lines · Dmitry Osipenko
This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory timings for RAM code 0 registered" warning message during of kernels boot-up on Tegra20.
Looking at the tegra20-emc.txt bindings doc [0], the 'nvidia,ram-code' property is also valid for Tegra20. In fact, I see this warning on the Tegra30 Cardhu because this property is not populated. So I think that this warning is valid and harmless.
Quoted 4 lines
Cheers
Jon[0]
Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt
That is the irrelevant binding, the relevant one for this driver is [0]. The warning is valid for T30+, but not for T20.
[0] Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-mc.txt
Quoted 14 lines · Dmitry Osipenko
Quoted 13 lines · On Thursday, 19 July 2018 18:30:48 MSK Jon Hunter wrote:
Quoted 3 lines · Dmitry Osipenko
This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory timings for RAM code 0 registered" warning message during of kernels boot-up on Tegra20.
Looking at the tegra20-emc.txt bindings doc [0], the 'nvidia,ram-code' property is also valid for Tegra20. In fact, I see this warning on the Tegra30 Cardhu because this property is not populated. So I think that this warning is valid and harmless.
Cheers
Jon
Quoted 6 lines
Quoted 1 line
[0]
Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txtThat is the irrelevant binding, the relevant one for this driver is [0]. The warning is valid for T30+, but not for T20.
[0]
Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-mc.txt
Yes indeed, looks like we never supported this for Tegra20. OK, fine with me I guess this was introduced during the consolidation of the MC drivers. Can you add the appropriate fixes tag?
Otherwise ...
Cheers
Jon
Signature · 1 line
nvpublic
Quoted 20 lines · On Friday, 20 July 2018 11:02:04 MSK Jon Hunter wrote:
Quoted 19 lines · Dmitry Osipenko
Quoted 10 lines · On Thursday, 19 July 2018 18:30:48 MSK Jon Hunter wrote:
Quoted 3 lines · Dmitry Osipenko
This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory timings for RAM code 0 registered" warning message during of kernels boot-up on Tegra20.
Looking at the tegra20-emc.txt bindings doc [0], the 'nvidia,ram-code' property is also valid for Tegra20. In fact, I see this warning on the Tegra30 Cardhu because this property is not populated. So I think that this warning is valid and harmless.
Quoted 4 lines
Cheers
Jon[0]
Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txtThat is the irrelevant binding, the relevant one for this driver is [0]. The warning is valid for T30+, but not for T20.
Quoted 7 lines
Quoted 3 lines
[0]
Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-mc.txtYes indeed, looks like we never supported this for Tegra20. OK, fine with me I guess this was introduced during the consolidation of the MC drivers. Can you add the appropriate fixes tag?
Sure, I can send v2 over next week.