Hi Sekhar,

On Tuesday, July 5, 2011, Nori, Sekhar <nsek...@ti.com> wrote:
&gt; Hi Christian,
&gt;
&gt; On Tue, Jul 05, 2011 at 16:45:52, Christian Riesch wrote:
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt; According to the register description of the MDSTATn registers of the
&gt;&gt; AM1808 SoC the module state with regard to the power and
sleep controller
&gt;&gt; (PSC) is given in bits 5-0. Hence, the bitmask that is used to read the
&gt;&gt; module state should be 0x3f. However, the MDSTAT_STATE_MASK defined in
&gt;&gt; arch/arm/mach-davinci/include/mach/psc.h is set to 0x1f.
&gt;&gt;
&gt;&gt; This was already reported by Sergei Shtylyov [1] but apparently it has
&gt;&gt; not been changed. Is there any special reason why this was
not corrected?
&gt;
&gt; I don't think there is any special reason. As Kevin said in the thread,
&gt; the fix should have been a separate patch - which probably never came.

Ok.

&gt; Curious as to why this came up? Did you hit any issue?

No, I didn't, I came across it when debugging a PSC related issue in
u-boot [1], which uses the same bitmask. However, the bitmask was not
the reason for my problems, 0x1f worked fine. But of course it took me
some time to figure that out so I guess it should be corrected to
prevent others from having to think about it.

Thanks, Christian

[1] http://marc.info/?l=u-boot&m=130857573323691&w=2
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to