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

Commit 9b0dcd53 authored by Jack Pham's avatar Jack Pham
Browse files

usb: pd: Update dual_role_usb in case of legacy cable



In the case of a non-PD legacy cable insertion, make sure to
update the dual_role_usb class so that the current power and
data roles (sink, ufp) are correctly notified to userland.

Change-Id: I8e41b57e8ac73bea8879374ad6e1e9fde954538d
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 70908b04
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -575,8 +575,10 @@ static void start_usb_peripheral_work(struct work_struct *w)
	struct usbpd *pd = container_of(w, struct usbpd, start_periph_work);

	pd->current_state = PE_SNK_STARTUP;
	pd->current_pr = PR_SINK;
	pd->current_dr = DR_UFP;
	start_usb_peripheral(pd);
	dual_role_instance_changed(pd->dual_role);
}

/**