From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/6] arm: socfpga: scan: Clean up scan_chain_engine_is_idle()
Date: Sat, 8 Aug 2015 14:14:52 +0200 [thread overview]
Message-ID: <201508081414.52205.marex@denx.de> (raw)
In-Reply-To: <55C5145C.30209@opensource.altera.com>
On Friday, August 07, 2015 at 10:26:04 PM, Dinh Nguyen wrote:
> On 8/3/15 9:22 AM, Marek Vasut wrote:
> > Rework this function so it's clear that it is only polling for certain
> > bits to be cleared. Add kerneldoc. Fix it's return value to be either
> > 0 on success and -ETIMEDOUT on error and propagate this through the
> > scan manager code.
> >
> > Signed-off-by: Marek Vasut <marex@denx.de>
> > ---
> >
> > arch/arm/mach-socfpga/include/mach/scan_manager.h | 9 ----
> > arch/arm/mach-socfpga/scan_manager.c | 53
> > +++++++++++++++-------- 2 files changed, 34 insertions(+), 28
> > deletions(-)
>
> [...]
>
> > @@ -16,26 +28,26 @@ static const struct socfpga_scan_manager
> > *scan_manager_base =
> >
> > static const struct socfpga_freeze_controller *freeze_controller_base =
> >
> > (void *)(SOCFPGA_SYSMGR_ADDRESS + SYSMGR_FRZCTRL_ADDRESS);
> >
> > -/*
> > +/**
> > + * scan_chain_engine_is_idle() - Check if the JTAG scan chain is idle
> > + * @max_iter: Maximum number of iterations to wait for idle
> > + *
> >
> > * Function to check IO scan chain engine status and wait if the engine
> > is * is active. Poll the IO scan chain engine till maximum iteration
> > reached. */
> >
> > -static inline uint32_t scan_chain_engine_is_idle(uint32_t max_iter)
> > +static u32 scan_chain_engine_is_idle(uint32_t max_iter)
>
> Should you go ahead and change this to u32?
>
> Only comment, otherwise:
Ah nice, thanks! Fixed :)
> Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
>
> Thanks,
> Dinh
Best regards,
Marek Vasut
next prev parent reply other threads:[~2015-08-08 12:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 14:22 [U-Boot] [PATCH 1/6] arm: socfpga: scan: Clean up scan_chain_engine_is_idle() Marek Vasut
2015-08-03 14:22 ` [U-Boot] [PATCH 2/6] arm: socfpga: scan: Introduce generic JTAG accessor Marek Vasut
2015-08-07 20:27 ` Dinh Nguyen
2015-08-03 14:22 ` [U-Boot] [PATCH 3/6] arm: socfpga: scan: Clean up horrible macros Marek Vasut
2015-08-07 20:40 ` Dinh Nguyen
2015-08-03 14:22 ` [U-Boot] [PATCH 4/6] arm: socfpga: scan: Factor out IO chain programming Marek Vasut
2015-08-07 20:52 ` Dinh Nguyen
2015-08-03 14:22 ` [U-Boot] [PATCH 5/6] arm: socfpga: scan: Add code to get FPGA ID Marek Vasut
2015-08-03 14:22 ` [U-Boot] [PATCH 6/6] arm: socfpga: misc: Add support for printing FPGA type Marek Vasut
2015-08-05 19:57 ` [U-Boot] [PATCH 1/6] arm: socfpga: scan: Clean up scan_chain_engine_is_idle() Marek Vasut
2015-08-07 20:26 ` Dinh Nguyen
2015-08-08 12:14 ` Marek Vasut [this message]
2015-08-08 12:15 ` Marek Vasut
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=201508081414.52205.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.