summaryrefslogtreecommitdiff
path: root/include/usb_mux.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-03-13 16:01:53 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-03-16 18:06:59 -0700
commit1851495eb2bea80c49f8e5a4951a003088e960f6 (patch)
treea231b773995a4dcaf6a4fdf11ae6e80a1ee7d59b /include/usb_mux.h
parent391056f9eea24cf19bc7d1571d7db18a3d0ae683 (diff)
downloadchrome-ec-1851495eb2bea80c49f8e5a4951a003088e960f6.tar.gz
tcpm: Call usb_mux board_init on exit from low power mode
PS8751 does not restore all register contents when resuming from low power mode. This change makes tcpm call board_init when it stops auto-toggling so that register contents can be restored. BUG=b:35585399 BRACH=none TEST=On Snappy, the board_init funciton is called every time a device is plugged in and register contents are restored. Change-Id: I50c51334f43c02e3c4d8453e1e966bf6eb3ce769 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/454139 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r--include/usb_mux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h
index c9bd76ba21..5e1fb6945a 100644
--- a/include/usb_mux.h
+++ b/include/usb_mux.h
@@ -71,7 +71,8 @@ struct usb_mux {
/**
* Board specific initialization for USB mux that is
- * called after mux->driver->init() function.
+ * called after mux->driver->init() function and every time the port
+ * leaves auto-toggle state.
*
* @param mux USB mux to tune
* @return EC_SUCCESS on success, non-zero error code on failure.