From c4eefd753012467261cf221babd2e8639b81d3ca Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 10 Feb 2012 15:32:32 +0100 Subject: linux-ti33x-psp 3.2: update to 3.2.5 Runtime tested on a beaglebone A3 Signed-off-by: Koen Kooi Signed-off-by: Denys Dmytriyenko --- .../3.2.1/0038-USB-omninet-fix-write_room.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.1/0038-USB-omninet-fix-write_room.patch (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.1/0038-USB-omninet-fix-write_room.patch') 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 @@ +From 4a6a3895c6ffe420a07f90df0f8ad5d7ac5a47a4 Mon Sep 17 00:00:00 2001 +From: Johan Hovold +Date: Sun, 6 Nov 2011 19:06:21 +0100 +Subject: [PATCH 38/49] USB: omninet: fix write_room + +commit 694c6301e515bad574af74b6552134c4d9dcb334 upstream. + +Fix regression introduced by commit 507ca9bc047666 ([PATCH] USB: add +ability for usb-serial drivers to determine if their write urb is +currently being used.) which inverted the logic in write_room so that it +returns zero when the write urb is actually free. + +Signed-off-by: Johan Hovold +Signed-off-by: Greg Kroah-Hartman +--- + drivers/usb/serial/omninet.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c +index 60f38d5..0a8c1e6 100644 +--- a/drivers/usb/serial/omninet.c ++++ b/drivers/usb/serial/omninet.c +@@ -315,7 +315,7 @@ static int omninet_write_room(struct tty_struct *tty) + int room = 0; /* Default: no room */ + + /* FIXME: no consistent locking for write_urb_busy */ +- if (wport->write_urb_busy) ++ if (!wport->write_urb_busy) + room = wport->bulk_out_size - OMNINET_HEADERLEN; + + dbg("%s - returns %d", __func__, room); +-- +1.7.7.4 + -- cgit v1.2.3-54-g00ecf