]> git.dujemihanovic.xyz Git - u-boot.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)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:30 +0000 (14:14 +0200)
commitaa5659ac65b4eefc1685f9d520279c4ee553789a
treeabcdf2059f73479d535a4c53689bd50b0425ba2a
parentcf96848bc76c7d680100e914b088ca34ed4e04e0
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