Skip to content

Commit

Permalink
staging: octeon-usb: don't poll interrupts early
Browse files Browse the repository at this point in the history
Don't poll interrupts before we have registered the HCD.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Mar 24, 2015
1 parent b5e79e6 commit c8eedbd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/octeon-usb/octeon-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3712,10 +3712,6 @@ static int octeon_usb_probe(struct platform_device *pdev)
/* This delay is needed for CN3010, but I don't know why... */
mdelay(10);

spin_lock_irqsave(&priv->lock, flags);
cvmx_usb_poll(&priv->usb);
spin_unlock_irqrestore(&priv->lock, flags);

status = usb_add_hcd(hcd, irq, 0);
if (status) {
dev_dbg(dev, "USB add HCD failed with %d\n", status);
Expand Down

0 comments on commit c8eedbd

Please sign in to comment.