]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: socfpga: scan: Clean up scan_chain_engine_is_idle()
authorMarek Vasut <marex@denx.de>
Sat, 1 Aug 2015 00:48:03 +0000 (02:48 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:38 +0000 (08:17 +0200)
commitbb5f25d9f9fc9eadd28cb40c08782abe40c72db0
tree81c9c914f30f772c05d42b375fae1c7a1cbdb432
parentf9bc8883195cf16606c316332cc3eb351c97654b
arm: socfpga: scan: Clean up scan_chain_engine_is_idle()

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>
Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/mach-socfpga/include/mach/scan_manager.h
arch/arm/mach-socfpga/scan_manager.c