Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0a2414c authored by Marko Man's avatar Marko Man Committed by LuK1337
Browse files

usb: pd: Restore all dual_role_instance_changed() calls

* This makes sure that USB HAL running in the userspace
  is able to receive all events that it expects.

Change-Id: I5e390c304429b8b13be2a2509ce615abb45f8973
parent c84b7797
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1328,6 +1328,7 @@ static void usbpd_set_state(struct usbpd *pd, enum usbpd_state next_state)
			pd->ss_lane_svid = 0x0;
		}

		dual_role_instance_changed(pd->dual_role);

		val.intval = 1; /* Rp-1.5A; SinkTxNG for PD 3.0 */
		power_supply_set_property(pd->usb_psy,
@@ -1575,6 +1576,8 @@ static void usbpd_set_state(struct usbpd *pd, enum usbpd_state next_state)
			}
		}

		dual_role_instance_changed(pd->dual_role);

		pd_reset_protocol(pd);

		if (!pd->in_pr_swap) {