mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
BD9995X: Fix disable case in bd9995x_select_input_port
The 'else' was missing in the for the check of port == BD9995X_CHARGE_PORT_BOTH. So if it wasn't this port type then it would always hit the panic. BUG=chrome-os-partner:59189 BRANCH=none TEST=Manual Verfied the failure case using a type C to type A adapter. After applying the fix verified that it no longer panics. Change-Id: Ia5a16c39e226d5e648c20d0c8675d6433d083f22 Signed-off-by: Scott <scollyer@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/405747 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
This commit is contained in:
@@ -827,7 +827,7 @@ int bd9995x_select_input_port(enum bd9995x_charge_port port, int select)
|
||||
reg &= ~BD9995X_CMD_VIN_CTRL_SET_VBUS_EN;
|
||||
else if (port == BD9995X_CHARGE_PORT_VCC)
|
||||
reg &= ~BD9995X_CMD_VIN_CTRL_SET_VCC_EN;
|
||||
if (port == BD9995X_CHARGE_PORT_BOTH)
|
||||
else if (port == BD9995X_CHARGE_PORT_BOTH)
|
||||
reg &= ~(BD9995X_CMD_VIN_CTRL_SET_VBUS_EN |
|
||||
BD9995X_CMD_VIN_CTRL_SET_VCC_EN);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user