aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-01 12:33:32 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-01 12:33:32 -0800
commitb55deb770bd37f0c2a88ccbae17b2dcc962942d9 (patch)
tree1329eb4f42bcab6bcc1965e081c39f839a94565b
parent5518e20e6d4dbc61544137266dd3c621399610eb (diff)
downloadltsi-kernel-b55deb770bd37f0c2a88ccbae17b2dcc962942d9.tar.gz
add patches.misc/input-rohm_bu21023-fix-handling-of-retrying-firmware.patch
-rw-r--r--patches.misc/input-rohm_bu21023-fix-handling-of-retrying-firmware.patch26
-rw-r--r--series1
2 files changed, 27 insertions, 0 deletions
diff --git a/patches.misc/input-rohm_bu21023-fix-handling-of-retrying-firmware.patch b/patches.misc/input-rohm_bu21023-fix-handling-of-retrying-firmware.patch
new file mode 100644
index 00000000000000..4671575d41abec
--- /dev/null
+++ b/patches.misc/input-rohm_bu21023-fix-handling-of-retrying-firmware.patch
@@ -0,0 +1,26 @@
+From 415a249f88fd263bed0f7cca86ecde8c57aba9dc Mon Sep 17 00:00:00 2001
+From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
+Date: Wed, 6 Jan 2016 14:44:02 -0800
+Subject: [PATCH] Input: rohm_bu21023 - fix handling of retrying firmware
+ update
+
+Because of the wrong condition we'd never retry firmware update.
+
+Acked-by: Yoichi Yuasa <yuasa@linux-mips.org>
+Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
+
+---
+ drivers/input/touchscreen/rohm_bu21023.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/input/touchscreen/rohm_bu21023.c
++++ b/drivers/input/touchscreen/rohm_bu21023.c
+@@ -725,7 +725,7 @@ static int rohm_ts_load_firmware(struct
+ break;
+
+ error = -EIO;
+- } while (++retry >= FIRMWARE_RETRY_MAX);
++ } while (++retry <= FIRMWARE_RETRY_MAX);
+
+ out:
+ error2 = i2c_smbus_write_byte_data(client, INT_MASK, INT_ALL);
diff --git a/series b/series
index 0889bb7e781ccd..72ba30231843e7 100644
--- a/series
+++ b/series
@@ -430,6 +430,7 @@ patches.altera/arm-socfpga-fix-build-error-due-to-secondary_startup.patch
#############################################################################
# Misc patches
patches.misc/input-add-support-for-rohm-bu21023-24-touchscreen.patch
+patches.misc/input-rohm_bu21023-fix-handling-of-retrying-firmware.patch
patches.misc/mtd-nand-support-for-toshiba-benand-built-in-ecc-nand.patch
##############################################################################