From: Tom Rini Date: Mon, 27 Jul 2020 09:33:13 -0400 Subject: [RESEND PATCH 2/3] env: mmc: correct the offset returned by mmc_offset_try_partition In-Reply-To: <20200615103839.RESEND.2.Ib5b400348308b65bb50d9bfff5fe681027bff4e5@changeid> References: <20200615083857.3825-1-patrick.delaunay@st.com> <20200615103839.RESEND.2.Ib5b400348308b65bb50d9bfff5fe681027bff4e5@changeid> Message-ID: <20200727133313.GH6965@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jun 15, 2020 at 10:38:56AM +0200, Patrick Delaunay wrote: > The output of the function mmc_offset_try_partition must be a > byte offset in mmc and not a multiple of blksz. > > This function is used in mmc_offset(), called by mmc_get_env_addr() > and the offset is used in write_env(), erase_env() and read_env(). > > In these function, blk_start = offset / mmc->read_bl_len > or /write_bl_len so this offset is not a multiple of blksz. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: