Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208052
b: refs/heads/master
c: b3864ce
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent 2dc9ae5 commit be0623e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: e7a9ff54271bf0ddbf641e5a0bde3ebda35808be
refs/heads/master: b3864cedfb576e11d2f9274f14a24840d8b569c3
13 changes: 4 additions & 9 deletions trunk/drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2082,17 +2082,12 @@ static irqreturn_t s3c_hsotg_irq(int irq, void *pw)
kill_all_requests(hsotg, &hsotg->eps[0], -ECONNRESET, true);

/* it seems after a reset we can end up with a situation
* where the TXFIFO still has data in it... try flushing
* it to remove anything that may still be in it.
* where the TXFIFO still has data in it... the docs
* suggest resetting all the fifos, so use the init_fifo
* code to relayout and flush the fifos.
*/

if (1) {
writel(S3C_GRSTCTL_TxFNum(0) | S3C_GRSTCTL_TxFFlsh,
hsotg->regs + S3C_GRSTCTL);

dev_info(hsotg->dev, "GNPTXSTS=%08x\n",
readl(hsotg->regs + S3C_GNPTXSTS));
}
s3c_hsotg_init_fifo(hsotg);

s3c_hsotg_enqueue_setup(hsotg);

Expand Down

0 comments on commit be0623e

Please sign in to comment.