target: lakemon: probemode entry isn't instantaneous
commit1ea313e333f60aed254ef6a7a052a2cebbc884e1
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 24 Feb 2017 13:21:37 +0000 (24 15:21 +0200)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 13 Jan 2018 09:24:50 +0000 (13 09:24 +0000)
treec6bd46d99ad712b901e9eaa3fe04af920e6c0309
parentea80232c5e67fe07dff00d54d4f4ac7adf9e3e78
target: lakemon: probemode entry isn't instantaneous

When testing with Intel Galileo GEN2 I have noticed a few iterations
where probemode entry took a little longer. At most I had to read
tapstatus twice. This patch uses a loop of up to 100 iterations to
wait for tapstatus to update with PM entry results.

Change-Id: I1c87d7dde715255b3fd2460d299b9493218533fc
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Reviewed-on: http://openocd.zylin.com/4013
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/target/lakemont.c