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

Commit ad45f1dc authored by Jason Wessel's avatar Jason Wessel Committed by Greg Kroah-Hartman
Browse files

USB: ehci-dbgp,ehci: Allow dbpg to work with suspend/resume



In order for the dbgp driver to survive suspend/resume, on every ehci
resume operation the debug controller must get re-initialized.

Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: dbrownell@users.sourceforge.net
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9780bc41
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -235,6 +235,13 @@ static int ehci_bus_resume (struct usb_hcd *hcd)
		return -ESHUTDOWN;
		return -ESHUTDOWN;
	}
	}


	if (unlikely(ehci->debug)) {
		if (ehci->debug && !dbgp_reset_prep())
			ehci->debug = NULL;
		else
			dbgp_external_startup();
	}

	/* Ideally and we've got a real resume here, and no port's power
	/* Ideally and we've got a real resume here, and no port's power
	 * was lost.  (For PCI, that means Vaux was maintained.)  But we
	 * was lost.  (For PCI, that means Vaux was maintained.)  But we
	 * could instead be restoring a swsusp snapshot -- so that BIOS was
	 * could instead be restoring a swsusp snapshot -- so that BIOS was