Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185387
b: refs/heads/master
c: db8516f
h: refs/heads/master
i:
  185385: eb00d9f
  185383: 2ad2181
v: v3
  • Loading branch information
Catalin Marinas authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 3902e9a commit e897810
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 9714080d20f2ec4b671a06ce69367d91fa9e227e
refs/heads/master: db8516f61b481e82cec398474ed716d926de7f94
10 changes: 10 additions & 0 deletions trunk/drivers/usb/host/isp1760-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <linux/mm.h>
#include <asm/unaligned.h>
#include <asm/cacheflush.h>

#include "../core/hcd.h"
#include "isp1760-hcd.h"
Expand Down Expand Up @@ -904,6 +906,14 @@ __acquires(priv->lock)
status = 0;
}

if (usb_pipein(urb->pipe) && usb_pipetype(urb->pipe) != PIPE_CONTROL) {
void *ptr;
for (ptr = urb->transfer_buffer;
ptr < urb->transfer_buffer + urb->transfer_buffer_length;
ptr += PAGE_SIZE)
flush_dcache_page(virt_to_page(ptr));
}

/* complete() can reenter this HCD */
usb_hcd_unlink_urb_from_ep(priv_to_hcd(priv), urb);
spin_unlock(&priv->lock);
Expand Down

0 comments on commit e897810

Please sign in to comment.