diff mbox

DaVinci: correct MDSTAT_STATE_MASK

Message ID 201107081924.57577.sshtylyov@ru.mvista.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sergei Shtylyov July 8, 2011, 3:24 p.m. UTC
MDSTAT.STATE occupies bits 0..5 according to all available documentation, so fix
the #define MDSTAT_STATE_MASK at last. Using the wrong value seems to have been
harmless though...

This was noticed by me back in 2009 but I didn't follow up with the patch back
then... :-/

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

---
The patch is against the recent DaVinci tree.

 arch/arm/mach-davinci/include/mach/psc.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sekhar Nori July 27, 2011, 4:18 p.m. UTC | #1
On Fri, Jul 08, 2011 at 20:54:57, Sergei Shtylyov wrote:
> MDSTAT.STATE occupies bits 0..5 according to all available documentation, so fix
> the #define MDSTAT_STATE_MASK at last. Using the wrong value seems to have been
> harmless though...
> 
> This was noticed by me back in 2009 but I didn't follow up with the patch back
> then... :-/
> 
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

I applied this with two changes.

Changed the headline to "ARM: davinci: correct MDSTAT_STATE_MASK"
to get the standardization requested by Arnd.

Also dropped the second paragraph of the commit text since it
doesn't really belong to the permanent history ;)

Thanks,
Sekhar
Sergei Shtylyov Sept. 6, 2011, 1:50 p.m. UTC | #2
Hello.

On 07/27/2011 08:18 PM, Nori, Sekhar wrote:

>> MDSTAT.STATE occupies bits 0..5 according to all available documentation, so fix
>> the #define MDSTAT_STATE_MASK at last. Using the wrong value seems to have been
>> harmless though...

>> This was noticed by me back in 2009 but I didn't follow up with the patch back
>> then... :-/

>> Signed-off-by: Sergei Shtylyov<sshtylyov@ru.mvista.com>

> I applied this with two changes.

> Changed the headline to "ARM: davinci: correct MDSTAT_STATE_MASK"
> to get the standardization requested by Arnd.

> Also dropped the second paragraph of the commit text since it
> doesn't really belong to the permanent history ;)

    You have queued it for 3.2, right?

> Thanks,
> Sekhar

WBR, Sergei
Sekhar Nori Sept. 6, 2011, 5:40 p.m. UTC | #3
Hi Sergei,

On Tue, Sep 06, 2011 at 19:20:20, Sergei Shtylyov wrote:
> Hello.
> 
> On 07/27/2011 08:18 PM, Nori, Sekhar wrote:
> 
> >> MDSTAT.STATE occupies bits 0..5 according to all available documentation, so fix
> >> the #define MDSTAT_STATE_MASK at last. Using the wrong value seems to have been
> >> harmless though...
> 
> >> This was noticed by me back in 2009 but I didn't follow up with the patch back
> >> then... :-/
> 
> >> Signed-off-by: Sergei Shtylyov<sshtylyov@ru.mvista.com>
> 
> > I applied this with two changes.
> 
> > Changed the headline to "ARM: davinci: correct MDSTAT_STATE_MASK"
> > to get the standardization requested by Arnd.
> 
> > Also dropped the second paragraph of the commit text since it
> > doesn't really belong to the permanent history ;)
> 
>     You have queued it for 3.2, right?

No, actually planning to send for v3.1. Have been delayed a bit
due to my recent travel.

Thanks,
Sekhar
diff mbox

Patch

Index: linux-davinci/arch/arm/mach-davinci/include/mach/psc.h
===================================================================
--- linux-davinci.orig/arch/arm/mach-davinci/include/mach/psc.h
+++ linux-davinci/arch/arm/mach-davinci/include/mach/psc.h
@@ -243,7 +243,7 @@ 
 #define PSC_STATE_DISABLE	2
 #define PSC_STATE_ENABLE	3
 
-#define MDSTAT_STATE_MASK	0x1f
+#define MDSTAT_STATE_MASK	0x3f
 #define MDCTL_FORCE		BIT(31)
 
 #ifndef __ASSEMBLER__