From aa5d4d08b84eb405728a1b2150926b12eb9eaa0d Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 22 Jan 2012 13:19:02 +0100 Subject: [PATCH] linux: add imon patch (see http://comments.gmane.org/gmane.comp.hardware.lirc/12006) Signed-off-by: Stephan Raue --- ...90c9231ad6b18f7393e1b6c6cef9dc6aa77c.patch | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 packages/linux/patches/linux-3.2.1-055-imon_revert_6f6b90c9231ad6b18f7393e1b6c6cef9dc6aa77c.patch diff --git a/packages/linux/patches/linux-3.2.1-055-imon_revert_6f6b90c9231ad6b18f7393e1b6c6cef9dc6aa77c.patch b/packages/linux/patches/linux-3.2.1-055-imon_revert_6f6b90c9231ad6b18f7393e1b6c6cef9dc6aa77c.patch new file mode 100644 index 0000000000..70de4b2518 --- /dev/null +++ b/packages/linux/patches/linux-3.2.1-055-imon_revert_6f6b90c9231ad6b18f7393e1b6c6cef9dc6aa77c.patch @@ -0,0 +1,55 @@ +diff -Naur linux-3.2.1/drivers/media/rc/imon.c linux-3.2.1.patch/drivers/media/rc/imon.c +--- linux-3.2.1/drivers/media/rc/imon.c 2012-01-12 20:42:45.000000000 +0100 ++++ linux-3.2.1.patch/drivers/media/rc/imon.c 2012-01-22 13:13:42.713053959 +0100 +@@ -1658,7 +1658,7 @@ + return; + + ictx = (struct imon_context *)urb->context; +- if (!ictx || !ictx->dev_present_intf0) ++ if (!ictx) + return; + + switch (urb->status) { +@@ -1690,7 +1690,7 @@ + return; + + ictx = (struct imon_context *)urb->context; +- if (!ictx || !ictx->dev_present_intf1) ++ if (!ictx) + return; + + switch (urb->status) { +@@ -2118,6 +2118,7 @@ + + ictx->dev = dev; + ictx->usbdev_intf0 = usb_get_dev(interface_to_usbdev(intf)); ++ ictx->dev_present_intf0 = true; + ictx->rx_urb_intf0 = rx_urb; + ictx->tx_urb = tx_urb; + ictx->rf_device = false; +@@ -2156,8 +2157,6 @@ + goto rdev_setup_failed; + } + +- ictx->dev_present_intf0 = true; +- + mutex_unlock(&ictx->lock); + return ictx; + +@@ -2201,6 +2200,7 @@ + } + + ictx->usbdev_intf1 = usb_get_dev(interface_to_usbdev(intf)); ++ ictx->dev_present_intf1 = true; + ictx->rx_urb_intf1 = rx_urb; + + ret = -ENODEV; +@@ -2229,8 +2229,6 @@ + goto urb_submit_failed; + } + +- ictx->dev_present_intf1 = true; +- + mutex_unlock(&ictx->lock); + return ictx; +