Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189415
b: refs/heads/master
c: c6c3523
h: refs/heads/master
i:
  189413: 5603736
  189411: 2598436
  189407: b653022
v: v3
  • Loading branch information
Harro Haan authored and Russell King committed Mar 29, 2010
1 parent 24b370c commit d333bac
Show file tree
Hide file tree
Showing 2 changed files with 10 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: fd522a8dec11a08b5fdd23982193808e268be19e
refs/heads/master: c6c352371c1ce486a62f4eb92e545b05cfcef76b
9 changes: 9 additions & 0 deletions trunk/drivers/usb/gadget/at91_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,12 @@ static irqreturn_t at91_udc_irq (int irq, void *_udc)
{
struct at91_udc *udc = _udc;
u32 rescans = 5;
int disable_clock = 0;

if (!udc->clocked) {
clk_on(udc);
disable_clock = 1;
}

while (rescans--) {
u32 status;
Expand Down Expand Up @@ -1458,6 +1464,9 @@ static irqreturn_t at91_udc_irq (int irq, void *_udc)
}
}

if (disable_clock)
clk_off(udc);

return IRQ_HANDLED;
}

Expand Down

0 comments on commit d333bac

Please sign in to comment.