summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.1/0038-USB-omninet-fix-write_room.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-02-10 15:32:32 +0100
committerDenys Dmytriyenko <denys@ti.com>2012-02-27 09:04:13 -0500
commitc4eefd753012467261cf221babd2e8639b81d3ca (patch)
tree0f6e09a6b51f410455330f046a8e03787d5a126e /recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.1/0038-USB-omninet-fix-write_room.patch
parent14f31c3c5a19dde049355ced3edd121c31842460 (diff)
downloadmeta-ti-c4eefd753012467261cf221babd2e8639b81d3ca.tar.gz
linux-ti33x-psp 3.2: update to 3.2.5
Runtime tested on a beaglebone A3 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.1/0038-USB-omninet-fix-write_room.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.1/0038-USB-omninet-fix-write_room.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.1/0038-USB-omninet-fix-write_room.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.1/0038-USB-omninet-fix-write_room.patch
new file mode 100644
index 00000000..cbd585ac
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.1/0038-USB-omninet-fix-write_room.patch
@@ -0,0 +1,34 @@
1From 4a6a3895c6ffe420a07f90df0f8ad5d7ac5a47a4 Mon Sep 17 00:00:00 2001
2From: Johan Hovold <jhovold@gmail.com>
3Date: Sun, 6 Nov 2011 19:06:21 +0100
4Subject: [PATCH 38/49] USB: omninet: fix write_room
5
6commit 694c6301e515bad574af74b6552134c4d9dcb334 upstream.
7
8Fix regression introduced by commit 507ca9bc047666 ([PATCH] USB: add
9ability for usb-serial drivers to determine if their write urb is
10currently being used.) which inverted the logic in write_room so that it
11returns zero when the write urb is actually free.
12
13Signed-off-by: Johan Hovold <jhovold@gmail.com>
14Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15---
16 drivers/usb/serial/omninet.c | 2 +-
17 1 files changed, 1 insertions(+), 1 deletions(-)
18
19diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c
20index 60f38d5..0a8c1e6 100644
21--- a/drivers/usb/serial/omninet.c
22+++ b/drivers/usb/serial/omninet.c
23@@ -315,7 +315,7 @@ static int omninet_write_room(struct tty_struct *tty)
24 int room = 0; /* Default: no room */
25
26 /* FIXME: no consistent locking for write_urb_busy */
27- if (wport->write_urb_busy)
28+ if (!wport->write_urb_busy)
29 room = wport->bulk_out_size - OMNINET_HEADERLEN;
30
31 dbg("%s - returns %d", __func__, room);
32--
331.7.7.4
34