Skip to content

Commit

Permalink
staging: typec: tcpm: Set correct flags in PD request messages
Browse files Browse the repository at this point in the history
We do support USB PD communication, and devices supported by this driver
typically use USB power for purposes other than USB communication.

Originally-from: Puma Hsu <puma_hsu@htc.com>
Cc: Yueyao Zhu <yueyao.zhu@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Guenter Roeck authored and Greg Kroah-Hartman committed May 15, 2017
1 parent 5fec4b5 commit 931693f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/typec/tcpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1738,8 +1738,7 @@ static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo)
}
ma = min(ma, port->max_snk_ma);

/* XXX: Any other flags need to be set? */
flags = 0;
flags = RDO_USB_COMM | RDO_NO_SUSPEND;

/* Set mismatch bit if offered power is less than operating power */
mw = ma * mv / 1000;
Expand Down

0 comments on commit 931693f

Please sign in to comment.