|
@@ -212,7 +212,7 @@ static void musb_port_reset(struct musb *musb, bool do_reset)
|
|
musb->port1_status |= USB_PORT_STAT_ENABLE
|
|
musb->port1_status |= USB_PORT_STAT_ENABLE
|
|
| (USB_PORT_STAT_C_RESET << 16)
|
|
| (USB_PORT_STAT_C_RESET << 16)
|
|
| (USB_PORT_STAT_C_ENABLE << 16);
|
|
| (USB_PORT_STAT_C_ENABLE << 16);
|
|
- usb_hcd_poll_rh_status(musb_to_hcd(musb));
|
|
|
|
|
|
+ usb_hcd_poll_rh_status(musb->hcd);
|
|
|
|
|
|
musb->vbuserr_retry = VBUSERR_RETRY_COUNT;
|
|
musb->vbuserr_retry = VBUSERR_RETRY_COUNT;
|
|
}
|
|
}
|
|
@@ -225,7 +225,7 @@ void musb_root_disconnect(struct musb *musb)
|
|
musb->port1_status = USB_PORT_STAT_POWER
|
|
musb->port1_status = USB_PORT_STAT_POWER
|
|
| (USB_PORT_STAT_C_CONNECTION << 16);
|
|
| (USB_PORT_STAT_C_CONNECTION << 16);
|
|
|
|
|
|
- usb_hcd_poll_rh_status(musb_to_hcd(musb));
|
|
|
|
|
|
+ usb_hcd_poll_rh_status(musb->hcd);
|
|
musb->is_active = 0;
|
|
musb->is_active = 0;
|
|
|
|
|
|
switch (musb->xceiv->state) {
|
|
switch (musb->xceiv->state) {
|
|
@@ -379,7 +379,7 @@ int musb_hub_control(
|
|
musb->port1_status &= ~(USB_PORT_STAT_SUSPEND
|
|
musb->port1_status &= ~(USB_PORT_STAT_SUSPEND
|
|
| MUSB_PORT_STAT_RESUME);
|
|
| MUSB_PORT_STAT_RESUME);
|
|
musb->port1_status |= USB_PORT_STAT_C_SUSPEND << 16;
|
|
musb->port1_status |= USB_PORT_STAT_C_SUSPEND << 16;
|
|
- usb_hcd_poll_rh_status(musb_to_hcd(musb));
|
|
|
|
|
|
+ usb_hcd_poll_rh_status(musb->hcd);
|
|
/* NOTE: it might really be A_WAIT_BCON ... */
|
|
/* NOTE: it might really be A_WAIT_BCON ... */
|
|
musb->xceiv->state = OTG_STATE_A_HOST;
|
|
musb->xceiv->state = OTG_STATE_A_HOST;
|
|
}
|
|
}
|