rma: when processing 'RMA open' do not reboot the device

Once RMA open is processed and CCD state is updated, the AP still
might require to perform some operations, even if TPM is not available
any more.

With this patch enable_ccd_factory_mode() does not trigger device
reset, if invoked by the RMA open handler.

Another modification is that WP is disabled immediately when factory
mode is enabled, there is no need to reset the H1 for WP status to
change.

BRANCH=cr50, cr50-mp
BUG=b:115495431
TEST=verified that running 'gsctool -a -r <authcode>' sets to 'Y' all
     CCD properties, disables write protection, but does not reboot
     the device.

Change-Id: I834a9e4b5ebbe4aaaf1caafad9c82424087d01f7
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1250037
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
5 files changed