]> git.karo-electronics.de Git - linux-beck.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)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 19:17:21 +0000 (22:17 +0300)
commited74df12dc3e07a37d99aab60211496e871488a0
treea3120bee76e30698158ece47090e16efc37ad236
parent5bf8fae33d14cc5c3c53a926f9079f92c8b082b0
usb: musb: make use_sg flag URB specific

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.

Cc: stable <stable@vger.kernel.org> # 3.7+
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>
drivers/usb/musb/musb_host.c
drivers/usb/musb/musb_host.h