New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 767292 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
Closed: Sep 21
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Chrome
Pri: 1
Type: Bug



Sign in to add a comment

EC: Charge Manager rejects a non dual role port if no override is set.

Project Member Reported by aaboagye@chromium.org, Sep 21 2017

Issue description

In charge_manager_get_best_charge_port(), there's some logic that appears to reject suppliers of type "other" (i.e. : a proprietary USB charger).

...[snip]...
#ifndef CONFIG_CHARGE_MANAGER_DRP_CHARGING
	/*
	 * Don't charge from a dual-role port unless
	 * it is our override port.
	 */
	if (dualrole_capability[j] != CAP_DEDICATED &&
	    override_port != j)
		continue;
#endif
...[snip]...


dualrole_capability can be "unknown", "dualrole", or "dedicated dualrole". But, a non-dual role port partner falls into the "unknown" bucket as well. And if we don't have an override port set (the usual case), we'll reject this charge port.

What if we also check that the override_port *is* set? I feel like that might capture the intent of the comment better.

What do you think?
 
Project Member

Comment 1 by sheriffbot@chromium.org, Sep 21

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment