flash: stop caching protection state
commit737c9b6258c6e68714ae264ff36126eb5d382d6a
authorØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 5 May 2010 13:08:34 +0000 (5 15:08 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 5 May 2010 13:24:25 +0000 (5 15:24 +0200)
tree508ba9ecd384a3f4d2fda13231d5fe53161e8c78
parentf7e0f3c285e9b1578184da886792e02d253ea687
flash: stop caching protection state

There are a million reasons why cached protection state might
be stale: power cycling of target, reset, code executing on
the target, etc.

The "flash protect_check" command is now gone. This is *always*
executed when running a "flash info".

As a bonus for more a more robust approach, lots of code could
be deleted.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
doc/openocd.texi
src/flash/nor/cfi.c
src/flash/nor/core.c
src/flash/nor/core.h
src/flash/nor/tcl.c
src/target/target.c