Skip to content

Commit

Permalink
Rockchip64: adjust patch as it doesn't align anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed May 18, 2024
1 parent 3096ee4 commit e5be2d4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,16 @@ index d962f67c95ae..5ac809870867 100644
tcpm_register_partner_altmodes(port);
}
break;
@@ -3650,6 +3692,7 @@ static int tcpm_src_attach(struct tcpm_port *port)
@@ -3650,8 +3692,9 @@ static int tcpm_src_attach(struct tcpm_port *port)
static void tcpm_typec_disconnect(struct tcpm_port *port)
{
if (port->connected) {
+ tcpm_update_extcon_data(port, false);
typec_partner_set_usb_power_delivery(port->partner, NULL);
typec_unregister_partner(port->partner);
port->partner = NULL;
if (port->partner) {
+ tcpm_update_extcon_data(port, false);
typec_partner_set_usb_power_delivery(port->partner, NULL);
typec_unregister_partner(port->partner);
port->partner = NULL;
}
@@ -3739,6 +3782,8 @@ static void tcpm_detach(struct tcpm_port *port)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,16 @@ index d962f67c95ae..5ac809870867 100644
tcpm_register_partner_altmodes(port);
}
break;
@@ -3650,6 +3692,7 @@ static int tcpm_src_attach(struct tcpm_port *port)
@@ -3650,8 +3692,9 @@ static int tcpm_src_attach(struct tcpm_port *port)
static void tcpm_typec_disconnect(struct tcpm_port *port)
{
if (port->connected) {
+ tcpm_update_extcon_data(port, false);
typec_partner_set_usb_power_delivery(port->partner, NULL);
typec_unregister_partner(port->partner);
port->partner = NULL;
if (port->partner) {
+ tcpm_update_extcon_data(port, false);
typec_partner_set_usb_power_delivery(port->partner, NULL);
typec_unregister_partner(port->partner);
port->partner = NULL;
}
@@ -3739,6 +3782,8 @@ static void tcpm_detach(struct tcpm_port *port)
}

Expand Down

0 comments on commit e5be2d4

Please sign in to comment.