Files
OpenCellular/common
Nicolas Boichat d0af9df605 usb_pd_policy: pd_extract_pdo_power: Check that mv != 0
It's preferable to print an error when mv = 0, rather than
crashing. Also, do not even select invalid PDO in
pd_find_pdo_index.

This was seen on elm, where ANX7688 appears to send the EC a
corrupted packet during hard reset when connected to j5create
adapter.

BRANCH=none
BUG=chrome-os-partner:60575
TEST=Plug in j5create adapter, then HDMI adapter, then power, elm
     does not crash (note that the HDMI output still does not work,
     but at least elm charges).

Change-Id: I2150ad6f13465a005444804ec44ec3bdc0ded361
Reviewed-on: https://chromium-review.googlesource.com/416700
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
2016-12-06 08:42:18 -08:00
..
2016-11-08 17:11:28 -08:00
2015-05-19 02:46:27 +00:00
2016-11-15 17:41:53 -08:00
2016-11-15 17:41:53 -08:00
2016-04-27 14:04:07 -07:00
2016-09-07 14:01:18 -07:00
2016-11-08 17:11:28 -08:00
2015-09-25 09:13:34 -07:00
2014-01-14 09:19:45 +00:00
2016-03-02 13:39:47 -08:00
2016-11-15 17:41:53 -08:00
2016-11-08 17:11:28 -08:00
2016-11-15 17:41:53 -08:00
2016-07-29 10:51:22 -07:00
2014-05-17 20:14:17 +00:00
2016-05-05 19:16:50 -07:00
2016-03-21 16:35:33 -07:00
2016-11-15 17:41:53 -08:00
2016-11-08 17:11:28 -08:00
2016-11-02 17:39:56 -07:00
2016-08-22 23:27:24 -07:00
2015-09-24 12:46:28 -07:00