Commit 931693f9 authored by Guenter Roeck's avatar Guenter Roeck Committed by Greg Kroah-Hartman

staging: typec: tcpm: Set correct flags in PD request messages

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: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5fec4b54
...@@ -1738,8 +1738,7 @@ static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo) ...@@ -1738,8 +1738,7 @@ static int tcpm_pd_build_request(struct tcpm_port *port, u32 *rdo)
} }
ma = min(ma, port->max_snk_ma); ma = min(ma, port->max_snk_ma);
/* XXX: Any other flags need to be set? */ flags = RDO_USB_COMM | RDO_NO_SUSPEND;
flags = 0;
/* Set mismatch bit if offered power is less than operating power */ /* Set mismatch bit if offered power is less than operating power */
mw = ma * mv / 1000; mw = ma * mv / 1000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment