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

Commit 00d423c8 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman
Browse files

USB: ehci-hcd: Add get_resuming_ports method



This patch adds support for the new get_resuming_ports HCD method to
the ehci-hcd driver.

Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 379cacc5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1226,6 +1226,7 @@ static const struct hc_driver ehci_hc_driver = {
	.bus_resume =		ehci_bus_resume,
	.relinquish_port =	ehci_relinquish_port,
	.port_handed_over =	ehci_port_handed_over,
	.get_resuming_ports =	ehci_get_resuming_ports,

	/*
	 * device support
+8 −0
Original line number Diff line number Diff line
@@ -512,10 +512,18 @@ static int ehci_bus_resume (struct usb_hcd *hcd)
	return -ESHUTDOWN;
}

static unsigned long ehci_get_resuming_ports(struct usb_hcd *hcd)
{
	struct ehci_hcd		*ehci = hcd_to_ehci(hcd);

	return ehci->resuming_ports;
}

#else

#define ehci_bus_suspend	NULL
#define ehci_bus_resume		NULL
#define ehci_get_resuming_ports	NULL

#endif	/* CONFIG_PM */