Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303822
b: refs/heads/master
c: b3546c9
h: refs/heads/master
v: v3
  • Loading branch information
Lukasz Majewski authored and Felipe Balbi committed May 4, 2012
1 parent 81fe181 commit cba6795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 308d734e9ed86b6713da46b4b9ce9ff017e75c63
refs/heads/master: b3546c97c7bb89294fc3da2718b3fabe7ee4c579
12 changes: 2 additions & 10 deletions trunk/drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2211,12 +2211,11 @@ static void s3c_hsotg_core_init(struct s3c_hsotg *hsotg)
/* Clear any pending interrupts */
writel(0xffffffff, hsotg->regs + S3C_GINTSTS);

writel(S3C_GINTSTS_DisconnInt | S3C_GINTSTS_SessReqInt |
writel(S3C_GINTSTS_ErlySusp | S3C_GINTSTS_SessReqInt |
S3C_GINTSTS_GOUTNakEff | S3C_GINTSTS_GINNakEff |
S3C_GINTSTS_ConIDStsChng | S3C_GINTSTS_USBRst |
S3C_GINTSTS_EnumDone | S3C_GINTSTS_OTGInt |
S3C_GINTSTS_USBSusp | S3C_GINTSTS_WkUpInt |
S3C_GINTSTS_ErlySusp,
S3C_GINTSTS_USBSusp | S3C_GINTSTS_WkUpInt,
hsotg->regs + S3C_GINTMSK);

if (using_dma(hsotg))
Expand Down Expand Up @@ -2339,13 +2338,6 @@ static irqreturn_t s3c_hsotg_irq(int irq, void *pw)
writel(otgint, hsotg->regs + S3C_GOTGINT);
}

if (gintsts & S3C_GINTSTS_DisconnInt) {
dev_dbg(hsotg->dev, "%s: DisconnInt\n", __func__);
writel(S3C_GINTSTS_DisconnInt, hsotg->regs + S3C_GINTSTS);

s3c_hsotg_disconnect_irq(hsotg);
}

if (gintsts & S3C_GINTSTS_SessReqInt) {
dev_dbg(hsotg->dev, "%s: SessReqInt\n", __func__);
writel(S3C_GINTSTS_SessReqInt, hsotg->regs + S3C_GINTSTS);
Expand Down

0 comments on commit cba6795

Please sign in to comment.