]> git.ipfire.org Git - people/ms/linux.git/commit
usb: musb: make use_sg flag URB specific
authorVirupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Wed, 24 Apr 2013 06:38:48 +0000 (08:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2013 17:49:01 +0000 (10:49 -0700)
commit8df8f41280ebdd7203b9767a16c7a794fcc2a0e3
tree5445626c6a915620e439d707ad0134dec2b9b690
parentf44b32e76bc1b03d3ec6e43ba4c789fb8462a795
usb: musb: make use_sg flag URB specific

commit ed74df12dc3e07a37d99aab60211496e871488a0 upstream.

Since highmem PIO URB handling was introduced in:

8e8a551 usb: musb: host: Handle highmem in PIO mode

when a URB is being handled it may happen that the static use_sg flag
was set by a previous URB with buffer in highmem.  This leads to error
in handling the present URB.

Fix this by making the use_sg flag URB specific.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_host.c
drivers/usb/musb/musb_host.h