diff options
author | Michael Büsch <mb@bu3sch.de> | 2011-11-05 16:10:18 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2011-11-05 16:10:18 +0000 |
commit | 05ce57c00544ae4ba9b990a58a3ecceeb16aa8a6 (patch) | |
tree | 0cc183c64b2a6c14fdb37e9ac27d73ea13e3a10b /target/linux/omap24xx/patches-3.1 | |
parent | 6288ac7ed4a153613e4a28ae40c7b60e80b18dde (diff) | |
download | upstream-05ce57c00544ae4ba9b990a58a3ecceeb16aa8a6.tar.gz upstream-05ce57c00544ae4ba9b990a58a3ecceeb16aa8a6.tar.bz2 upstream-05ce57c00544ae4ba9b990a58a3ecceeb16aa8a6.zip |
omap24xx: Add cbus tahvo locking fix.
SVN-Revision: 28767
Diffstat (limited to 'target/linux/omap24xx/patches-3.1')
-rw-r--r-- | target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch | 14 | ||||
-rw-r--r-- | target/linux/omap24xx/patches-3.1/900-n810-battery-management.patch | 34 |
2 files changed, 31 insertions, 17 deletions
diff --git a/target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch b/target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch new file mode 100644 index 0000000000..ac3bd04a8a --- /dev/null +++ b/target/linux/omap24xx/patches-3.1/251-cbus-tahvo-lock-fix.patch @@ -0,0 +1,14 @@ +Index: linux-3.1/drivers/cbus/tahvo.c +=================================================================== +--- linux-3.1.orig/drivers/cbus/tahvo.c 2011-11-05 17:03:39.598846119 +0100 ++++ linux-3.1/drivers/cbus/tahvo.c 2011-11-05 17:04:36.274768324 +0100 +@@ -104,7 +104,9 @@ void tahvo_write_reg(struct device *chil + { + struct tahvo *tahvo = dev_get_drvdata(child->parent); + ++ mutex_lock(&tahvo->mutex); + __tahvo_write_reg(tahvo, reg, val); ++ mutex_unlock(&tahvo->mutex); + } + EXPORT_SYMBOL(tahvo_write_reg); + diff --git a/target/linux/omap24xx/patches-3.1/900-n810-battery-management.patch b/target/linux/omap24xx/patches-3.1/900-n810-battery-management.patch index ffd057728c..3b1f296d4b 100644 --- a/target/linux/omap24xx/patches-3.1/900-n810-battery-management.patch +++ b/target/linux/omap24xx/patches-3.1/900-n810-battery-management.patch @@ -1,7 +1,7 @@ Index: linux-3.1/drivers/cbus/Kconfig =================================================================== ---- linux-3.1.orig/drivers/cbus/Kconfig 2011-11-05 15:02:39.041041166 +0100 -+++ linux-3.1/drivers/cbus/Kconfig 2011-11-05 15:02:39.177041045 +0100 +--- linux-3.1.orig/drivers/cbus/Kconfig 2011-11-05 17:03:39.578846146 +0100 ++++ linux-3.1/drivers/cbus/Kconfig 2011-11-05 17:06:51.589348749 +0100 @@ -83,4 +83,12 @@ config CBUS_RETU_HEADSET endif # CBUS_RETU @@ -17,8 +17,8 @@ Index: linux-3.1/drivers/cbus/Kconfig endmenu Index: linux-3.1/drivers/cbus/Makefile =================================================================== ---- linux-3.1.orig/drivers/cbus/Makefile 2011-11-05 15:02:39.041041166 +0100 -+++ linux-3.1/drivers/cbus/Makefile 2011-11-05 15:02:39.177041045 +0100 +--- linux-3.1.orig/drivers/cbus/Makefile 2011-11-05 17:03:39.618846091 +0100 ++++ linux-3.1/drivers/cbus/Makefile 2011-11-05 17:06:51.589348749 +0100 @@ -11,3 +11,6 @@ obj-$(CONFIG_CBUS_RETU_POWERBUTTON) += r obj-$(CONFIG_CBUS_RETU_RTC) += retu-rtc.o obj-$(CONFIG_CBUS_RETU_WDT) += retu-wdt.o @@ -29,7 +29,7 @@ Index: linux-3.1/drivers/cbus/Makefile Index: linux-3.1/drivers/cbus/n810bm_main.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-3.1/drivers/cbus/n810bm_main.c 2011-11-05 16:42:53.033998545 +0100 ++++ linux-3.1/drivers/cbus/n810bm_main.c 2011-11-05 17:06:51.589348749 +0100 @@ -0,0 +1,1572 @@ +/* + * Nokia n810 battery management @@ -1606,7 +1606,7 @@ Index: linux-3.1/drivers/cbus/n810bm_main.c Index: linux-3.1/drivers/cbus/lipocharge.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-3.1/drivers/cbus/lipocharge.c 2011-11-05 15:02:39.177041045 +0100 ++++ linux-3.1/drivers/cbus/lipocharge.c 2011-11-05 17:06:51.589348749 +0100 @@ -0,0 +1,183 @@ +/* + * Generic LIPO battery charger @@ -1794,7 +1794,7 @@ Index: linux-3.1/drivers/cbus/lipocharge.c Index: linux-3.1/drivers/cbus/lipocharge.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-3.1/drivers/cbus/lipocharge.h 2011-11-05 15:02:39.177041045 +0100 ++++ linux-3.1/drivers/cbus/lipocharge.h 2011-11-05 17:06:51.589348749 +0100 @@ -0,0 +1,60 @@ +#ifndef LIPOCHARGE_H_ +#define LIPOCHARGE_H_ @@ -1858,8 +1858,8 @@ Index: linux-3.1/drivers/cbus/lipocharge.h +#endif /* LIPOCHARGE_H_ */ Index: linux-3.1/drivers/cbus/cbus.c =================================================================== ---- linux-3.1.orig/drivers/cbus/cbus.c 2011-11-05 15:02:39.041041166 +0100 -+++ linux-3.1/drivers/cbus/cbus.c 2011-11-05 15:02:39.177041045 +0100 +--- linux-3.1.orig/drivers/cbus/cbus.c 2011-11-05 17:03:39.610846102 +0100 ++++ linux-3.1/drivers/cbus/cbus.c 2011-11-05 17:06:51.589348749 +0100 @@ -34,6 +34,7 @@ #include <linux/gpio.h> #include <linux/platform_device.h> @@ -1884,8 +1884,8 @@ Index: linux-3.1/drivers/cbus/cbus.c MODULE_AUTHOR("Juha Yrjölä"); Index: linux-3.1/drivers/cbus/cbus.h =================================================================== ---- linux-3.1.orig/drivers/cbus/cbus.h 2011-11-05 15:02:39.041041166 +0100 -+++ linux-3.1/drivers/cbus/cbus.h 2011-11-05 15:02:39.177041045 +0100 +--- linux-3.1.orig/drivers/cbus/cbus.h 2011-11-05 17:03:39.590846131 +0100 ++++ linux-3.1/drivers/cbus/cbus.h 2011-11-05 17:06:51.589348749 +0100 @@ -27,4 +27,6 @@ extern int cbus_read_reg(struct device * extern int cbus_write_reg(struct device *, unsigned dev, unsigned reg, unsigned val); @@ -1895,8 +1895,8 @@ Index: linux-3.1/drivers/cbus/cbus.h #endif /* __DRIVERS_CBUS_CBUS_H */ Index: linux-3.1/drivers/cbus/retu.c =================================================================== ---- linux-3.1.orig/drivers/cbus/retu.c 2011-11-05 15:02:39.041041166 +0100 -+++ linux-3.1/drivers/cbus/retu.c 2011-11-05 15:02:39.177041045 +0100 +--- linux-3.1.orig/drivers/cbus/retu.c 2011-11-05 17:03:39.606846106 +0100 ++++ linux-3.1/drivers/cbus/retu.c 2011-11-05 17:06:51.589348749 +0100 @@ -417,6 +417,11 @@ static int retu_allocate_children(struct if (!child) return -ENOMEM; @@ -1911,9 +1911,9 @@ Index: linux-3.1/drivers/cbus/retu.c Index: linux-3.1/drivers/cbus/tahvo.c =================================================================== ---- linux-3.1.orig/drivers/cbus/tahvo.c 2011-11-05 15:02:39.041041166 +0100 -+++ linux-3.1/drivers/cbus/tahvo.c 2011-11-05 16:23:10.694222186 +0100 -@@ -129,6 +129,7 @@ void tahvo_set_clear_reg_bits(struct dev +--- linux-3.1.orig/drivers/cbus/tahvo.c 2011-11-05 17:04:36.274768324 +0100 ++++ linux-3.1/drivers/cbus/tahvo.c 2011-11-05 17:06:51.589348749 +0100 +@@ -131,6 +131,7 @@ void tahvo_set_clear_reg_bits(struct dev __tahvo_write_reg(tahvo, reg, w); mutex_unlock(&tahvo->mutex); } @@ -1921,7 +1921,7 @@ Index: linux-3.1/drivers/cbus/tahvo.c static irqreturn_t tahvo_irq_handler(int irq, void *_tahvo) { -@@ -305,6 +306,11 @@ static int tahvo_allocate_children(struc +@@ -307,6 +308,11 @@ static int tahvo_allocate_children(struc if (!child) return -ENOMEM; |