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 <ma...@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: Acked-by: Dinh Nguyen <dingu...@opensource.altera.com> Thanks, Dinh _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot