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:
committed by
Stephen Boyd
parent
966e364488
commit
11ab4a3c27
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user