From: Tom Rini Date: Fri, 8 Mar 2013 10:06:44 -0500 Subject: [U-Boot] [PATCH] dfu:mmc: When doing block operations, operate on the given length In-Reply-To: <1362666344-21856-1-git-send-email-trini@ti.com> References: <1362666344-21856-1-git-send-email-trini@ti.com> Message-ID: <20130308150644.GA14116@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 Thu, Mar 07, 2013 at 09:25:44AM -0500, Tom Rini wrote: > When working on RAW partitions, it's possible that the whole area > is larger than DDR. So what we need to do is make sure that the length > we are given is aligned with the LBA block size, then pass that length > in as our count of LBA blocks to operate on. In doing this, we no > longer need to modify *len on read operations. > > Cc: Lukasz Majewski > Signed-off-by: Tom Rini As I dig at and fix the other problem (which Michael points out, > 4MiB files crash), this patch is more for comment / confirmation that this change is fine on trats as well. These same concepts are part of my patch now that updates Pantelis' patch, without breaking file writes. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: