mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 01:24:33 +00:00
typec: tcpm: Fix a msecs vs jiffies bug
The tcpm_set_state() function take msecs not jiffies. Fixes: f0690a25a140 ("staging: typec: USB Type-C Port Manager (tcpm)") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ecc443c03f
commit
9578bcd0bb
@ -3043,7 +3043,8 @@ static void run_state_machine(struct tcpm_port *port)
|
||||
tcpm_port_is_sink(port) &&
|
||||
time_is_after_jiffies(port->delayed_runtime)) {
|
||||
tcpm_set_state(port, SNK_DISCOVERY,
|
||||
port->delayed_runtime - jiffies);
|
||||
jiffies_to_msecs(port->delayed_runtime -
|
||||
jiffies));
|
||||
break;
|
||||
}
|
||||
tcpm_set_state(port, unattached_state(port), 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user