summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-octeon.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2011-12-20 14:50:26 +0100
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>2011-12-22 11:28:19 +0100
commitceb3f91fd53c9fbd7b292fc2754ba4efffeeeedb (patch)
tree84d7287caec1f614495d176dd146aae301d21f07 /drivers/usb/host/ehci-octeon.c
parent22188f4a933c6e86ac67f52028895c795896492e (diff)
downloadlinux-ceb3f91fd53c9fbd7b292fc2754ba4efffeeeedb.tar.bz2
usb/uas: one only one status URB/host on stream-less connection
The status/sense URB is allocated on per-command basis. A read/write looks the following way on a stream-less connection: - send cmd tag X, queue status - receive status, oh it is a read for tag X. queue status & read - receive read - receive status, oh I'm done for tag X. Cool call complete and free status urb. This block repeats itself 1:1 for further commands and looks great so far. Lets take a look now what happens if we do allow multiple commands: - send cmd tag X, queue statusX (belongs to the command with the X tag) - send cmd tag Y, queue statusY (belongs to the command with the Y tag) - receive statusX, oh it is a read for tag X. queue statusX & a read - receive read - receive statusY, oh I'm done for tag X. Cool call complete and free statusY. - receive statusX, oh it is a read for tag Y. queue statusY & before we queue the read the the following message can be observed: |sd 0:0:0:0: [sda] sense urb submission failure followed by a second attempt with the same result. In order to address this problem we will use only one status URB for each scsi host in case we don't have stream support (as suggested by Matthew). This URB is requeued until the device removed. Nothing changes on stream based endpoints. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'drivers/usb/host/ehci-octeon.c')
0 files changed, 0 insertions, 0 deletions