Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alan Stern and committed by
Greg Kroah-Hartman
00d423c8 379cacc5

+9
+1
drivers/usb/host/ehci-hcd.c
··· 1226 1226 .bus_resume = ehci_bus_resume, 1227 1227 .relinquish_port = ehci_relinquish_port, 1228 1228 .port_handed_over = ehci_port_handed_over, 1229 + .get_resuming_ports = ehci_get_resuming_ports, 1229 1230 1230 1231 /* 1231 1232 * device support
+8
drivers/usb/host/ehci-hub.c
··· 512 512 return -ESHUTDOWN; 513 513 } 514 514 515 + static unsigned long ehci_get_resuming_ports(struct usb_hcd *hcd) 516 + { 517 + struct ehci_hcd *ehci = hcd_to_ehci(hcd); 518 + 519 + return ehci->resuming_ports; 520 + } 521 + 515 522 #else 516 523 517 524 #define ehci_bus_suspend NULL 518 525 #define ehci_bus_resume NULL 526 + #define ehci_get_resuming_ports NULL 519 527 520 528 #endif /* CONFIG_PM */ 521 529