Scott Collyer
0aa4bfe9a3
tcpc: Move board level TCPC init to happen in pd_task init
...
When the board level TCPC run as an init hook it will frequently
lead to an EC reset when we are trying to recovery a disconnected
battery, potentially even a reboot loop with the most unlucky
timing.
If we instead call it from the pd_task before tcpc_init is called
then the board init hook can stall the pd_task init until the
battery is out of disconnect mode, or giving up after 2 seconds
in case the battery never seems to recover.
This accomplishes two goals: ensure the PD chips are not reset until
the battery is out of disconnect and delay start of the pd_task
(and PD negotiation) until the battery is out of disconnect state.
This change was done in the Eve FW branch. Pulling it into TOT so it
can be used for other boards that have the same
issue. https://chromium-review.googlesource.com/c/592716 . The change
to wait for the battery to be out of disconnect mode is in the board
specific board_tcpc_init() function and so will be in subsequent board
specific CLs.
BUG=b:63957122
BRANCH=none
TEST=manual Verify that 'make buildall' is successful.
Change-Id: I14c3dbb89cdc05fa9231fbe9db2e1de19fa941b6
Signed-off-by: Scott Collyer <scollyer@google.com >
Reviewed-on: https://chromium-review.googlesource.com/627114
Commit-Ready: Scott Collyer <scollyer@chromium.org >
Tested-by: Scott Collyer <scollyer@chromium.org >
Reviewed-by: Aaron Durbin <adurbin@chromium.org >
2017-08-23 21:17:22 -07:00
..
2017-02-17 04:09:37 -08:00
2017-01-07 13:29:52 -08:00
2013-12-12 18:21:56 +00:00
2016-05-26 16:17:26 -07:00
2015-10-02 12:55:51 -07:00
2013-12-17 21:27:53 +00:00
2015-04-10 22:08:25 +00:00
2017-06-28 23:23:41 -07:00
2014-12-31 00:01:00 +00:00
2017-01-13 05:00:27 -08:00
2017-08-23 21:17:22 -07:00
2016-08-23 15:36:55 -07:00
2016-08-12 20:49:45 -07:00
2016-10-26 01:44:06 -07:00
2016-07-22 20:37:17 -07:00
2016-11-15 17:41:58 -08:00
2017-05-12 18:46:14 -07:00
2016-04-22 20:40:03 -07:00
2014-02-08 04:15:39 +00:00
2017-08-01 13:01:41 -07:00
2017-08-11 20:10:20 -07:00
2017-02-02 19:09:52 -08:00
2014-04-11 15:37:38 +00:00
2017-01-02 14:04:12 -08:00
2017-03-03 17:11:30 -08:00
2016-02-26 21:22:07 -08:00
2017-02-10 19:02:55 -08:00
2017-02-02 19:09:52 -08:00
2017-02-09 20:48:47 -08:00
2015-02-10 10:47:07 +00:00
2017-08-04 18:08:16 -07:00
2017-06-15 07:07:40 -07:00
2015-09-24 18:07:01 -07:00
2017-08-23 21:17:22 -07:00
2017-07-19 14:41:21 -07:00
2017-05-10 07:08:31 -07:00
2015-06-18 19:07:00 +00:00
2016-03-18 22:16:53 -07:00
2015-06-18 19:07:00 +00:00
2017-01-25 22:12:28 -08:00
2017-07-03 21:44:34 -07:00
2017-06-30 03:08:42 -07:00
2017-08-23 17:01:21 -07:00
2015-07-27 22:19:16 +00:00
2014-02-08 00:14:48 +00:00
2017-08-15 06:51:58 -07:00
2013-10-25 20:12:49 +00:00
2016-08-10 22:16:57 -07:00
2017-08-02 15:02:34 -07:00
2017-06-06 14:36:28 -07:00
2015-06-10 18:24:05 +00:00
2014-11-06 02:28:22 +00:00
2017-07-28 17:45:13 -07:00
2015-09-18 17:55:32 -07:00
2016-09-09 17:15:25 -07:00
2015-05-27 03:58:16 +00:00
2017-06-13 15:12:33 -07:00
2015-05-27 03:58:16 +00:00
2017-07-20 15:00:40 -07:00
2017-05-25 04:27:41 -07:00
2013-06-26 09:08:23 -07:00
2016-12-01 19:59:01 -08:00
2012-11-04 20:27:57 -08:00
2015-06-18 19:07:00 +00:00
2015-04-10 22:08:25 +00:00
2017-05-18 18:07:29 -07:00
2016-11-17 07:08:25 -08:00
2016-11-08 20:30:07 -08:00
2016-07-19 18:33:36 -07:00
2016-11-17 07:08:25 -08:00
2016-04-01 00:21:35 -07:00
2017-05-08 07:04:06 -07:00
2013-03-22 11:24:29 -07:00
2015-09-19 12:27:21 -07:00
2017-05-02 17:45:16 -07:00
2015-07-17 03:17:57 +00:00
2015-08-10 20:42:18 +00:00
2013-04-02 14:12:57 -07:00
2014-10-08 02:50:54 +00:00
2014-10-15 18:22:37 +00:00
2015-10-23 18:03:12 -07:00
2017-07-20 15:00:40 -07:00
2017-01-21 10:03:45 -08:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2011-12-07 19:10:02 +00:00
2016-11-04 18:31:37 -07:00
2016-08-17 16:19:07 -07:00
2016-11-08 17:11:28 -08:00
2017-08-08 17:34:11 -07:00
2017-06-02 10:38:57 -07:00
2016-12-21 19:42:37 -08:00
2017-02-23 01:19:07 -08:00
2012-10-25 14:12:11 -07:00
2017-07-28 17:45:13 -07:00
2017-06-15 15:17:17 -07:00
2012-11-01 12:45:22 -07:00
2017-07-19 14:41:21 -07:00
2015-10-19 18:21:22 -07:00
2017-06-19 21:03:29 -07:00
2013-04-24 16:32:58 -07:00
2016-11-17 16:09:44 -08:00
2016-07-29 10:51:22 -07:00
2015-06-18 19:07:00 +00:00
2017-03-24 06:49:55 -07:00
2015-06-18 19:07:00 +00:00
2015-07-15 21:57:36 +00:00
2017-06-30 16:02:50 -07:00
2017-06-14 01:19:31 -07:00
2017-04-11 20:22:32 -07:00
2017-07-13 19:45:57 -07:00
2016-01-29 02:59:58 +00:00
2015-06-18 19:07:00 +00:00
2017-06-14 05:59:37 -07:00
2017-01-05 21:13:09 -08:00
2016-11-15 17:41:53 -08:00
2017-02-23 11:36:21 -08:00
2015-09-15 19:17:53 -07:00
2016-09-23 12:21:51 -07:00
2016-12-07 23:45:29 +00:00
2017-03-13 17:53:58 -07:00
2015-06-18 19:07:00 +00:00
2015-04-10 22:08:25 +00:00
2017-08-15 06:51:58 -07:00
2016-11-08 17:11:28 -08:00
2017-08-15 00:25:20 -07:00
2017-04-25 05:52:34 -07:00
2017-05-04 21:38:51 -07:00
2015-06-18 19:07:00 +00:00
2014-02-08 04:21:26 +00:00
2015-09-16 14:49:46 -07:00
2015-01-14 03:15:41 +00:00
2014-08-10 18:39:24 +00:00
2016-07-21 17:32:28 -07:00
2017-08-23 12:19:07 -07:00
2017-07-30 22:41:06 -07:00
2017-05-31 00:24:01 -07:00
2017-08-10 22:47:24 -07:00
2017-02-23 11:36:21 -08:00
2017-06-29 10:37:40 -07:00
2017-06-29 10:37:40 -07:00
2016-04-27 10:10:02 -07:00
2017-08-10 01:14:59 -07:00
2017-08-12 05:22:03 -07:00
2015-06-18 19:07:00 +00:00
2017-04-20 13:09:07 -07:00
2015-09-08 13:49:09 -07:00
2017-07-28 17:45:13 -07:00
2017-08-16 06:03:49 -07:00
2016-11-16 19:04:47 -08:00
2017-07-31 21:39:39 -07:00
2017-08-11 20:10:23 -07:00
2015-11-08 17:31:12 -08:00
2017-08-21 22:03:53 -07:00
2017-08-11 20:10:20 -07:00
2017-08-18 14:27:23 -07:00
2017-02-17 04:09:37 -08:00
2015-07-01 03:49:00 +00:00
2017-07-14 04:01:45 -07:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2017-04-06 03:29:38 -07:00
2016-12-14 06:03:14 -08:00
2017-03-10 19:52:31 -08:00
2015-01-20 20:56:43 +00:00