mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
Revert "usb: typec: tcpm: update power supply once partner accepts"
This reverts commit 230bd19653 which is
4050f2683f2c3151dc3dd1501ac88c57caf810ff commit upstream in 5.4.119 as
it breaks the kernel abi.
If it needs to come back, it needs to be done in an abi-preserving way.
Bug: 161946584
Cc: Badhri Jagan Sridharan <badhri@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I81c5bdc4da5fc1c6760bbf16d7bd22ca7fe20509
This commit is contained in:
parent
a0ead24eb5
commit
9b6fc6b213
1 changed files with 3 additions and 1 deletions
|
|
@ -1814,7 +1814,6 @@ static void tcpm_pd_ctrl_request(struct tcpm_port *port,
|
|||
port->pps_data.max_curr = port->pps_data.req_max_curr;
|
||||
port->req_supply_voltage = port->pps_data.req_out_volt;
|
||||
port->req_current_limit = port->pps_data.req_op_curr;
|
||||
power_supply_changed(port->psy);
|
||||
tcpm_set_state(port, SNK_TRANSITION_SINK, 0);
|
||||
break;
|
||||
case SOFT_RESET_SEND:
|
||||
|
|
@ -2338,6 +2337,7 @@ static unsigned int tcpm_pd_select_pps_apdo(struct tcpm_port *port)
|
|||
port->pps_data.req_out_volt));
|
||||
port->pps_data.req_op_curr = min(port->pps_data.max_curr,
|
||||
port->pps_data.req_op_curr);
|
||||
power_supply_changed(port->psy);
|
||||
}
|
||||
|
||||
return src_pdo;
|
||||
|
|
@ -2737,6 +2737,8 @@ static void tcpm_reset_port(struct tcpm_port *port)
|
|||
port->try_src_count = 0;
|
||||
port->try_snk_count = 0;
|
||||
port->usb_type = POWER_SUPPLY_USB_TYPE_C;
|
||||
|
||||
power_supply_changed(port->psy);
|
||||
}
|
||||
|
||||
static void tcpm_detach(struct tcpm_port *port)
|
||||
|
|
|
|||
Loading…
Reference in a new issue