Commit 3294b0af authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Remove old unused delay_port_power_off

Remove old unused delay_port_power_off
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 60de4439
......@@ -450,11 +450,6 @@ struct musb {
struct usb_gadget_driver *gadget_driver; /* its driver */
#endif
#ifdef CONFIG_USB_MUSB_OTG
/* FIXME this can't be OTG-specific ... ? */
u8 delay_port_power_off;
#endif
#ifdef MUSB_CONFIG_PROC_FS
struct proc_dir_entry *proc_entry;
#endif
......
......@@ -557,7 +557,6 @@ static irqreturn_t musb_stage0_irq(struct musb * musb, u8 int_usb,
if (is_peripheral_active(musb)) {
// REVISIT HNP; just force disconnect
}
musb->delay_port_power_off = FALSE;
musb_writew(mbase, MUSB_INTRTXE, musb->epmask);
musb_writew(mbase, MUSB_INTRRXE, musb->epmask & 0xfffe);
musb_writeb(mbase, MUSB_INTRUSBE, 0xf7);
......
......@@ -121,13 +121,6 @@ static void musb_port_reset(struct musb *musb, u8 bReset)
musb->port1_status &= ~USB_PORT_STAT_RESET;
return;
}
/* REVISIT this looks wrong for HNP */
u8 devctl = musb_readb(mbase, MUSB_DEVCTL);
if (musb->delay_port_power_off || !(devctl & MUSB_DEVCTL_HM)) {
return;
}
#endif
if (!is_host_active(musb))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment