|
@@ -1624,7 +1624,7 @@ static int musb_gadget_wakeup(struct usb_gadget *gadget)
|
|
}
|
|
}
|
|
|
|
|
|
spin_unlock_irqrestore(&musb->lock, flags);
|
|
spin_unlock_irqrestore(&musb->lock, flags);
|
|
- otg_start_srp(musb->xceiv);
|
|
|
|
|
|
+ otg_start_srp(musb->xceiv->otg);
|
|
spin_lock_irqsave(&musb->lock, flags);
|
|
spin_lock_irqsave(&musb->lock, flags);
|
|
|
|
|
|
/* Block idling for at least 1s */
|
|
/* Block idling for at least 1s */
|
|
@@ -1915,7 +1915,7 @@ static int musb_gadget_start(struct usb_gadget *g,
|
|
spin_lock_irqsave(&musb->lock, flags);
|
|
spin_lock_irqsave(&musb->lock, flags);
|
|
musb->is_active = 1;
|
|
musb->is_active = 1;
|
|
|
|
|
|
- otg_set_peripheral(musb->xceiv, &musb->g);
|
|
|
|
|
|
+ otg_set_peripheral(otg, &musb->g);
|
|
musb->xceiv->state = OTG_STATE_B_IDLE;
|
|
musb->xceiv->state = OTG_STATE_B_IDLE;
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1947,7 +1947,7 @@ static int musb_gadget_start(struct usb_gadget *g,
|
|
|
|
|
|
if ((musb->xceiv->last_event == USB_EVENT_ID)
|
|
if ((musb->xceiv->last_event == USB_EVENT_ID)
|
|
&& otg->set_vbus)
|
|
&& otg->set_vbus)
|
|
- otg_set_vbus(musb->xceiv, 1);
|
|
|
|
|
|
+ otg_set_vbus(otg, 1);
|
|
|
|
|
|
hcd->self.uses_pio_for_control = 1;
|
|
hcd->self.uses_pio_for_control = 1;
|
|
}
|
|
}
|
|
@@ -2029,7 +2029,7 @@ static int musb_gadget_stop(struct usb_gadget *g,
|
|
|
|
|
|
musb->xceiv->state = OTG_STATE_UNDEFINED;
|
|
musb->xceiv->state = OTG_STATE_UNDEFINED;
|
|
stop_activity(musb, driver);
|
|
stop_activity(musb, driver);
|
|
- otg_set_peripheral(musb->xceiv, NULL);
|
|
|
|
|
|
+ otg_set_peripheral(musb->xceiv->otg, NULL);
|
|
|
|
|
|
dev_dbg(musb->controller, "unregistering driver %s\n", driver->function);
|
|
dev_dbg(musb->controller, "unregistering driver %s\n", driver->function);
|
|
|
|
|