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

Commit 887bd462 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: f_ipc: Wait for req completion only when suspended"

parents d6a4bbcf 4604b6ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ static int ipc_write(struct platform_device *pdev, char *buf,
	/* Notify the GPIO driver to wakeup the host and reintialize the
	 * completion structure.
	 */
	} else if (!ipc_dev->online) {
	} else if (ipc_dev->connected && !ipc_dev->online) {
		sb_notifier_call_chain(EVT_WAKE_UP, NULL);
		reinit_completion(&ipc_dev->write_done);
		goto retry_write_done;