summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorNick Sanders <nsanders@chromium.org>2018-05-18 18:53:40 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-05-21 21:18:04 -0700
commitc20a6da0549197b9d35bea59473f709a757ddfcf (patch)
treee04e271966bb4e2024b37c2f2f95ff9485604c34 /extra
parent70091bf0f76ccf88c2956c22cfcb3807e95e1849 (diff)
downloadchrome-ec-c20a6da0549197b9d35bea59473f709a757ddfcf.tar.gz
servo_updater: add reboot flag
This allows a reboot request regardless of whether update is required. BRANCH=servo BUG=b:69016505 TEST=servo reboots Change-Id: I2e8651e6ffa95c622aa0a8122d705d9ac8fbdd82 Signed-off-by: Nick Sanders <nsanders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1066988 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'extra')
-rwxr-xr-xextra/usb_updater/servo_updater.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/extra/usb_updater/servo_updater.py b/extra/usb_updater/servo_updater.py
index 38c92cb68e..1c8981efa5 100755
--- a/extra/usb_updater/servo_updater.py
+++ b/extra/usb_updater/servo_updater.py
@@ -213,6 +213,8 @@ def main():
help="Update even if version match", default=False)
parser.add_argument('-v', '--verbose', action="store_true",
help="Chatty output")
+ parser.add_argument('-r', '--reboot', action="store_true",
+ help="Always reboot, even after probe.")
args = parser.parse_args()
@@ -237,6 +239,8 @@ def main():
if newvers == vers:
print("No version update needed")
+ if args.reboot is True:
+ select(vidpid, iface, serialno, "ro", debuglog=debuglog)
return
else:
print("Updating to recommended version.")