From 5a23e3f49ac76e854b51279bc4c2a922ef24339c Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Tue, 22 May 2018 15:55:23 -0700 Subject: cr50: refactor rma mode into factory mode We're doing a bit of refactoring to break out factory mode into its own file. Now factory reset and rma reset will be two methods of entering factory mode. Factory mode can be disabled with the disable_factory vendor command. Factory mode means all ccd capabilities are set to Always and WP is permanently disabled. When factory mode is disabled, all capabilities are reset to Default and WP is reset to follow battery presence. This adds 56 bytes. BUG=none BRANCH=cr50 TEST=verify rma reset will enable factory mode. Change-Id: I21c6f7b4341e3a18e213e438bbd17c67739b85fa Signed-off-by: Mary Ruthven Reviewed-on: https://chromium-review.googlesource.com/1069789 Commit-Ready: Mary Ruthven Tested-by: Mary Ruthven Reviewed-by: Randall Spangler --- extra/usb_updater/gsctool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extra') diff --git a/extra/usb_updater/gsctool.c b/extra/usb_updater/gsctool.c index e17dbb7b8b..9e35bef881 100644 --- a/extra/usb_updater/gsctool.c +++ b/extra/usb_updater/gsctool.c @@ -1863,7 +1863,7 @@ static void process_rma(struct transfer_descriptor *td, const char *authcode) if (!strcmp(authcode, "disable")) { printf("Disabling RMA mode\n"); - send_vendor_command(td, VENDOR_CC_DISABLE_RMA, NULL, 0, + send_vendor_command(td, VENDOR_CC_DISABLE_FACTORY, NULL, 0, rma_response, &response_size); if (response_size) { fprintf(stderr, "Failed disabling RMA, error %d\n", -- cgit v1.2.1