USB: EHCI: use otg_start_hnp() to intiate HNP in ehci-hub.c

EHCI core intiates HNP by calling otg_start_hnp() API when OTG port
is put into suspend to notify OTG driver which will take care of
HNP by suspending host and kicking gadget.

Change-Id: I2982b9f49140c2dcf2a32691e74f177e8d5d08cb
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
This commit is contained in:
Vijayavardhan Vennapusa
2012-03-05 16:09:40 +05:30
committed by Stephen Boyd
parent 966e364488
commit 11ab4a3c27
2 changed files with 2 additions and 4 deletions

View File

@@ -1126,10 +1126,9 @@ static int ehci_hub_control (
#ifdef CONFIG_USB_OTG
if (hcd->self.otg_port == (wIndex + 1) &&
hcd->self.b_hnp_enable &&
ehci->start_hnp) {
hcd->self.b_hnp_enable) {
set_bit(wIndex, &ehci->suspended_ports);
ehci->start_hnp(ehci);
otg_start_hnp(ehci->transceiver->otg);
break;
}
#endif

View File

@@ -136,7 +136,6 @@ struct ehci_hcd { /* one per controller */
u32 command;
unsigned max_log2_irq_thresh;
void (*start_hnp)(struct ehci_hcd *ehci);
/* SILICON QUIRKS */
unsigned no_selective_suspend:1;