linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] DaVinci: correct MDSTAT_STATE_MASK
@ 2011-07-08 15:24 Sergei Shtylyov
  2011-07-08 15:30 ` Sergei Shtylyov
  2011-07-27 16:18 ` Nori, Sekhar
  0 siblings, 2 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2011-07-08 15:24 UTC (permalink / raw)
  To: linux-arm-kernel

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(-)

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__

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] DaVinci: correct MDSTAT_STATE_MASK
  2011-07-08 15:24 [PATCH] DaVinci: correct MDSTAT_STATE_MASK Sergei Shtylyov
@ 2011-07-08 15:30 ` Sergei Shtylyov
  2011-07-27 16:18 ` Nori, Sekhar
  1 sibling, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2011-07-08 15:30 UTC (permalink / raw)
  To: linux-arm-kernel

Hello.

I 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...

    Except maybe sleep.S -- davinci_ddr_psc_config() could exit too early when 
disabling DDR clock. The same is true with davinci_psc_config() in general but I 
don't think that anything depended on its timely return in that case.

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

    Shame on me. :-)

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

WBR, Sergei

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] DaVinci: correct MDSTAT_STATE_MASK
  2011-07-08 15:24 [PATCH] DaVinci: correct MDSTAT_STATE_MASK Sergei Shtylyov
  2011-07-08 15:30 ` Sergei Shtylyov
@ 2011-07-27 16:18 ` Nori, Sekhar
  2011-09-06 13:50   ` Sergei Shtylyov
  1 sibling, 1 reply; 5+ messages in thread
From: Nori, Sekhar @ 2011-07-27 16:18 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] DaVinci: correct MDSTAT_STATE_MASK
  2011-07-27 16:18 ` Nori, Sekhar
@ 2011-09-06 13:50   ` Sergei Shtylyov
  2011-09-06 17:40     ` Nori, Sekhar
  0 siblings, 1 reply; 5+ messages in thread
From: Sergei Shtylyov @ 2011-09-06 13:50 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] DaVinci: correct MDSTAT_STATE_MASK
  2011-09-06 13:50   ` Sergei Shtylyov
@ 2011-09-06 17:40     ` Nori, Sekhar
  0 siblings, 0 replies; 5+ messages in thread
From: Nori, Sekhar @ 2011-09-06 17:40 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-06 17:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-08 15:24 [PATCH] DaVinci: correct MDSTAT_STATE_MASK Sergei Shtylyov
2011-07-08 15:30 ` Sergei Shtylyov
2011-07-27 16:18 ` Nori, Sekhar
2011-09-06 13:50   ` Sergei Shtylyov
2011-09-06 17:40     ` Nori, Sekhar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).