All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init
@ 2017-04-15 14:11 Heinrich Schuchardt
  2017-04-16 19:34 ` Simon Glass
  2017-08-14  0:06 ` [U-Boot] [U-Boot, RFC, 1/1] omap3: incorrect logical check in do_emif4_init Tom Rini
  0 siblings, 2 replies; 6+ messages in thread
From: Heinrich Schuchardt @ 2017-04-15 14:11 UTC (permalink / raw)
  To: u-boot

((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) == 0x01)
is always false.
This does not match the comment
/*Wait till that bit clears*/

The problem was indicated by cppcheck.

I do not have the hardware to test if the code change below
leads to a correct system behavior.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 arch/arm/mach-omap2/omap3/emif4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/omap3/emif4.c b/arch/arm/mach-omap2/omap3/emif4.c
index d540cf08d2..8197e7b032 100644
--- a/arch/arm/mach-omap2/omap3/emif4.c
+++ b/arch/arm/mach-omap2/omap3/emif4.c
@@ -76,7 +76,7 @@ static void do_emif4_init(void)
 	regval |= (1<<10);
 	writel(regval, &emif4_base->sdram_iodft_tlgc);
 	/*Wait till that bit clears*/
-	while ((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) == 0x1);
+	while ((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) != 0x0);
 	/*Re-verify the DDR PHY status*/
 	while ((readl(&emif4_base->sdram_sts) & (1<<2)) == 0x0);
 
-- 
2.11.0

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

* [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init
  2017-04-15 14:11 [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init Heinrich Schuchardt
@ 2017-04-16 19:34 ` Simon Glass
  2017-06-25  6:13   ` [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init - Please, pull Heinrich Schuchardt
  2017-08-14  0:06 ` [U-Boot] [U-Boot, RFC, 1/1] omap3: incorrect logical check in do_emif4_init Tom Rini
  1 sibling, 1 reply; 6+ messages in thread
From: Simon Glass @ 2017-04-16 19:34 UTC (permalink / raw)
  To: u-boot

On 15 April 2017 at 08:11, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> ((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) == 0x01)
> is always false.
> This does not match the comment
> /*Wait till that bit clears*/
>
> The problem was indicated by cppcheck.
>
> I do not have the hardware to test if the code change below
> leads to a correct system behavior.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  arch/arm/mach-omap2/omap3/emif4.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

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

* [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init - Please, pull.
  2017-04-16 19:34 ` Simon Glass
@ 2017-06-25  6:13   ` Heinrich Schuchardt
  2017-06-25 13:54     ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Heinrich Schuchardt @ 2017-06-25  6:13 UTC (permalink / raw)
  To: u-boot

Hello Tom,

could you, please, pull the patch
https://patchwork.ozlabs.org/patch/751043/
which has been reviewed in April.

Best regards

Heinrich Schuchardt

On 04/16/2017 09:34 PM, Simon Glass wrote:
> On 15 April 2017 at 08:11, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>> ((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) == 0x01)
>> is always false.
>> This does not match the comment
>> /*Wait till that bit clears*/
>>
>> The problem was indicated by cppcheck.
>>
>> I do not have the hardware to test if the code change below
>> leads to a correct system behavior.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> ---
>>  arch/arm/mach-omap2/omap3/emif4.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Reviewed-by: Simon Glass <sjg@chromium.org>
> 

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

* [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init - Please, pull.
  2017-06-25  6:13   ` [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init - Please, pull Heinrich Schuchardt
@ 2017-06-25 13:54     ` Tom Rini
  2017-07-24 18:37       ` Heinrich Schuchardt
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2017-06-25 13:54 UTC (permalink / raw)
  To: u-boot

On Sun, Jun 25, 2017 at 08:13:19AM +0200, Heinrich Schuchardt wrote:

> Hello Tom,
> 
> could you, please, pull the patch
> https://patchwork.ozlabs.org/patch/751043/
> which has been reviewed in April.

I actually want to run-test this patch.  I happen to have a platform,
and I even set it up the other day, but forgot about this patch.  I'll
set it back up and test it, then apply.  Thanks!

> 
> Best regards
> 
> Heinrich Schuchardt
> 
> On 04/16/2017 09:34 PM, Simon Glass wrote:
> > On 15 April 2017 at 08:11, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> >> ((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) == 0x01)
> >> is always false.
> >> This does not match the comment
> >> /*Wait till that bit clears*/
> >>
> >> The problem was indicated by cppcheck.
> >>
> >> I do not have the hardware to test if the code change below
> >> leads to a correct system behavior.
> >>
> >> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> >> ---
> >>  arch/arm/mach-omap2/omap3/emif4.c | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > Reviewed-by: Simon Glass <sjg@chromium.org>
> > 
> 

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170625/2ba95f19/attachment.sig>

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

* [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init - Please, pull.
  2017-06-25 13:54     ` Tom Rini
@ 2017-07-24 18:37       ` Heinrich Schuchardt
  0 siblings, 0 replies; 6+ messages in thread
From: Heinrich Schuchardt @ 2017-07-24 18:37 UTC (permalink / raw)
  To: u-boot

On 06/25/2017 03:54 PM, Tom Rini wrote:
> On Sun, Jun 25, 2017 at 08:13:19AM +0200, Heinrich Schuchardt wrote:
> 
>> Hello Tom,
>>
>> could you, please, pull the patch
>> https://patchwork.ozlabs.org/patch/751043/
>> which has been reviewed in April.
> 
> I actually want to run-test this patch.  I happen to have a platform,
> and I even set it up the other day, but forgot about this patch.  I'll
> set it back up and test it, then apply.  Thanks!
> 

Hello Tom,

any update?

Regards

Heinrich


>>
>> Best regards
>>
>> Heinrich Schuchardt
>>
>> On 04/16/2017 09:34 PM, Simon Glass wrote:
>>> On 15 April 2017 at 08:11, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>>>> ((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) == 0x01)
>>>> is always false.
>>>> This does not match the comment
>>>> /*Wait till that bit clears*/
>>>>
>>>> The problem was indicated by cppcheck.
>>>>
>>>> I do not have the hardware to test if the code change below
>>>> leads to a correct system behavior.
>>>>
>>>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>>>> ---
>>>>  arch/arm/mach-omap2/omap3/emif4.c | 2 +-
>>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> Reviewed-by: Simon Glass <sjg@chromium.org>
>>>
>>
> 
> 
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
> 

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

* [U-Boot] [U-Boot, RFC, 1/1] omap3: incorrect logical check in do_emif4_init
  2017-04-15 14:11 [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init Heinrich Schuchardt
  2017-04-16 19:34 ` Simon Glass
@ 2017-08-14  0:06 ` Tom Rini
  1 sibling, 0 replies; 6+ messages in thread
From: Tom Rini @ 2017-08-14  0:06 UTC (permalink / raw)
  To: u-boot

On Sat, Apr 15, 2017 at 04:11:12PM +0200, xypron.glpk at gmx.de wrote:

> ((readl(&emif4_base->sdram_iodft_tlgc) & (1<<10)) == 0x01)
> is always false.
> This does not match the comment
> /*Wait till that bit clears*/
> 
> The problem was indicated by cppcheck.
> 
> I do not have the hardware to test if the code change below
> leads to a correct system behavior.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170813/938c3209/attachment.sig>

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

end of thread, other threads:[~2017-08-14  0:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-15 14:11 [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init Heinrich Schuchardt
2017-04-16 19:34 ` Simon Glass
2017-06-25  6:13   ` [U-Boot] [RFC 1/1] omap3: incorrect logical check in do_emif4_init - Please, pull Heinrich Schuchardt
2017-06-25 13:54     ` Tom Rini
2017-07-24 18:37       ` Heinrich Schuchardt
2017-08-14  0:06 ` [U-Boot] [U-Boot, RFC, 1/1] omap3: incorrect logical check in do_emif4_init Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.