From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] dfu, nand: add medium specific polltimeout function
Date: Fri, 11 Apr 2014 09:44:25 +0200 [thread overview]
Message-ID: <201404110944.25818.marex@denx.de> (raw)
In-Reply-To: <1397195987-6543-1-git-send-email-hs@denx.de>
On Friday, April 11, 2014 at 07:59:47 AM, Heiko Schocher wrote:
> add a possibility to add a medium specific polltimeout
> function. So it is possible to define different
> poll timeouts.
>
> Used on nand medium, for setting the DFU_MANIFEST_POLL_TIMEOUT
> only on nand ubi partitions, which is currently the only
> usecase.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Lukasz Majewski <l.majewski@samsung.com>
> Cc: Kyungmin Park <kyungmin.park@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
>
> ---
> - changes for v2:
> - add comment from Pantelis Antoniou
> - add simple accessor for getting the poll timeout
> dfu_get_manifest_timeout()
>
> drivers/dfu/dfu_nand.c | 13 +++++++++++++
> drivers/usb/gadget/f_dfu.c | 10 +++++++++-
> include/dfu.h | 1 +
> 3 files changed, 23 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/dfu/dfu_nand.c b/drivers/dfu/dfu_nand.c
> index 2d07097..ccdbef6 100644
> --- a/drivers/dfu/dfu_nand.c
> +++ b/drivers/dfu/dfu_nand.c
> @@ -163,6 +163,18 @@ static int dfu_flush_medium_nand(struct dfu_entity
> *dfu) return ret;
> }
>
> +unsigned int dfu_polltimeout_nand(struct dfu_entity *dfu)
> +{
> + /*
> + * Currently, Poll Timeout != 0 is only needed on nand
> + * ubi partition, as the not used sectors need an erase
Don't you have to erase sectors before writing into them even on RAW NAND ?
[..]
Other than that:
Reviewed-by: Marek Vasut <marex@denx.de>
Best regards,
Marek Vasut
next prev parent reply other threads:[~2014-04-11 7:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-11 5:59 [U-Boot] [PATCH v2] dfu, nand: add medium specific polltimeout function Heiko Schocher
2014-04-11 7:44 ` Marek Vasut [this message]
2014-05-08 8:46 ` Lukasz Majewski
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=201404110944.25818.marex@denx.de \
--to=marex@denx.de \
--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.