From: Lukasz Majewski <l.majewski@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers:dfu:dfu_sf: Fix upload - add partition/altsetting start address
Date: Wed, 16 Nov 2016 15:59:44 +0100 [thread overview]
Message-ID: <20161116155944.0a35db03@amdc2363> (raw)
In-Reply-To: <1479296720-3413-1-git-send-email-michael.hennerich@analog.com>
Hi michael.hennerich at analog.com,
> From: Michael Hennerich <michael.hennerich@analog.com>
>
> This fixes a bug seen with DFU Serial Flash upload/medium-read in case
> dfu->data.sf.start > 0.
>
>
> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
> ---
> drivers/dfu/dfu_sf.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c
> index 9702eee..51c9b7f 100644
> --- a/drivers/dfu/dfu_sf.c
> +++ b/drivers/dfu/dfu_sf.c
> @@ -20,7 +20,8 @@ static long dfu_get_medium_size_sf(struct
> dfu_entity *dfu) static int dfu_read_medium_sf(struct dfu_entity
> *dfu, u64 offset, void *buf, long *len)
> {
> - return spi_flash_read(dfu->data.sf.dev, offset, *len, buf);
> + return spi_flash_read(dfu->data.sf.dev, dfu->data.sf.start +
> offset,
> + *len, buf);
> }
>
> static u64 find_sector(struct dfu_entity *dfu, u64 start, u64 offset)
Thanks for the patch.
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
prev parent reply other threads:[~2016-11-16 14:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20161116114458epcas3p2d504a3488df7bb90b7f0c2d705e7c91b@epcas3p2.samsung.com>
2016-11-16 11:45 ` [U-Boot] [PATCH] drivers:dfu:dfu_sf: Fix upload - add partition/altsetting start address michael.hennerich at analog.com
2016-11-16 14:59 ` Lukasz Majewski [this message]
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=20161116155944.0a35db03@amdc2363 \
--to=l.majewski@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox