Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28324
b: refs/heads/master
c: 2d61bde
h: refs/heads/master
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Jun 21, 2006
1 parent c322f64 commit ca14256
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b383539e04c413e040d998aedcc120c49aa670da
refs/heads/master: 2d61bde7a0e630e1906e6478b6b2a7aeaaa8f8da
17 changes: 17 additions & 0 deletions trunk/drivers/usb/gadget/net2280.c
Original file line number Diff line number Diff line change
Expand Up @@ -2966,6 +2966,22 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
return retval;
}

/* make sure the board is quiescent; otherwise it will continue
* generating IRQs across the upcoming reboot.
*/

static void net2280_shutdown (struct pci_dev *pdev)
{
struct net2280 *dev = pci_get_drvdata (pdev);

/* disable IRQs */
writel (0, &dev->regs->pciirqenb0);
writel (0, &dev->regs->pciirqenb1);

/* disable the pullup so the host will think we're gone */
writel (0, &dev->usb->usbctl);
}


/*-------------------------------------------------------------------------*/

Expand Down Expand Up @@ -2995,6 +3011,7 @@ static struct pci_driver net2280_pci_driver = {

.probe = net2280_probe,
.remove = net2280_remove,
.shutdown = net2280_shutdown,

/* FIXME add power management support */
};
Expand Down

0 comments on commit ca14256

Please sign in to comment.