[U-Boot] [PATCH v2 3/5] sun6i: dram: Do not try to initialize a second dram chan on A31s

Siarhei Siamashka siarhei.siamashka at gmail.com
Fri Dec 12 21:25:54 CET 2014


On Sun, 23 Nov 2014 14:43:13 +0100
Hans de Goede <hdegoede at redhat.com> wrote:

> The A31s only has one dram channel, so do not bother with trying to initialize
> a second channel.
> 
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>

Ian Campbell has already noticed in the earlier review. In the case *if*
the automatic detection works correctly, then why bother adding this
*extra* code? Based on your description, it looks like a superfluous
band-aid and increases the number of "moving parts". Which generally
makes the code less maintainable.

There was a talk about calling it a "performance optimization" earlier,
but the v2 commit message does not mention this. Neither does it present
any benchmark numbers.

Basically, it boils down to whether we can trust the automatic detection
code to do a proper job or not. Normally, if the automatic detection
does not work correctly in all cases, then it needs to be fixed in the
long run. But I can clearly understand if you are not willing to take
any risks and just want to deploy something that somehow works to the
end users sooner.

Either way, I have nothing against these patches. Just would prefer a
little bit better transparency and more clear commit messages. Keep up
the good job.

-- 
Best regards,
Siarhei Siamashka


More information about the U-Boot mailing list