From: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
To: "u-boot@lists.denx.de" <u-boot@lists.denx.de>,
"joe.hershberger@ni.com" <joe.hershberger@ni.com>,
"fr0st61te@gmail.com" <fr0st61te@gmail.com>
Subject: Re: [PATCH] fw_setenv: Unbreak fw_setenv caused by buggy MEMISLOCKED use
Date: Sun, 19 Dec 2021 15:28:01 +0000 [thread overview]
Message-ID: <ecbcff82c2971e5cfc725576010ab8e465372a9e.camel@infinera.com> (raw)
In-Reply-To: <15e3b8694c54a48ba1c508adaf612f9ad3dd399a.camel@gmail.com>
On Sun, 2021-12-19 at 14:20 +0000, Ivan Mikhaylov wrote:
> On Sat, 2021-12-18 at 18:23 +0000, Joakim Tjernlund wrote:
> > Ping?
> > Maybe just revert commit 8a726b852502 ("fw_setenv: lock the flash
> > only if it was locked before") ?
> >
> > ________________________________________
> > From: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
> > Sent: 13 December 2021 18:22
> > To: u-boot@lists.denx.de; joe.hershberger@ni.com; fr0st61te@gmail.com
> > Subject: Re: [PATCH] fw_setenv: Unbreak fw_setenv caused by buggy
> > MEMISLOCKED use
> >
> > +Joe Hershberger
> >
> > Jocke
> >
> > On Wed, 2021-12-08 at 15:33 +0100, Joakim Tjernlund wrote:
> > > Commit "fw_setenv: lock the flash only if it was locked before"
> > > checks for Locked status with uninitialized erase data.
> > > Address by moving the test for MEMISLOCKED.
> > >
> > > Fixes: 8a726b852502 ("fw_setenv: lock the flash only if it was
> > > locked before")
> > > Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
>
> Joakim, can you provide more detailed description about what you want
> to fix or revert, please? In which case you see problems with
> 8a726b852502?
>
> Thanks.
>
We see it when we set a variable to the same value it already had, then we get a locking error
from fw_setenv.
If you just look 1 min at the code you will see that 8a726b852502 sends garbage to MEMISLOCKED
Jocke
next prev parent reply other threads:[~2021-12-19 15:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-08 14:33 [PATCH] fw_setenv: Unbreak fw_setenv caused by buggy MEMISLOCKED use Joakim Tjernlund
2021-12-13 17:22 ` Joakim Tjernlund
2021-12-18 18:23 ` Joakim Tjernlund
2021-12-19 14:20 ` Ivan Mikhaylov
2021-12-19 15:28 ` Joakim Tjernlund [this message]
2021-12-20 16:16 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ecbcff82c2971e5cfc725576010ab8e465372a9e.camel@infinera.com \
--to=joakim.tjernlund@infinera.com \
--cc=fr0st61te@gmail.com \
--cc=joe.hershberger@ni.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.