Skip to contentSkip to conversation

TSC2301 update patches

PATCH Jarkko Nikula 2 participants 3 messages Mar 19, 2007 – Mar 30, 2007

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

First two patches here update recently pushed TSC2301 protocol driver:

http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=commit;h=a7b9b17c9025066cd05f555bbba5542bcf16df3a

Third one will change TSC2301 config names in N800 board files.

I'm sending these as attachments since first one is from Imre. These were generated against ftp://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git tree. I'll test them against mvista tree when cloning is ready...

Jarkko

Quoted 1 line

From 716687a1a02bab7ee4e600316c27dc51b79e2b79 Mon Sep 17 00:00:00 2001

From: Imre Deak <[email protected]>
Date: Mon, 12 Mar 2007 17:46:25 +0200
Subject: [PATCH] TSC2301 touchscreen: fix error path in driver probe function

---
 drivers/spi/tsc2301-ts.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
drivers/spi/tsc2301-ts.c +8 -4
index da91736..8657b56 100644
@@ -629,19 +629,23 @@ int __devinit tsc2301_ts_init(struct tsc2301 *tsc,
 	}
 	set_irq_wake(ts->irq, 1);
 
-	device_create_file(&tsc->spi->dev, &dev_attr_pen_down);
-	device_create_file(&tsc->spi->dev, &dev_attr_disable_ts);
+	if (device_create_file(&tsc->spi->dev, &dev_attr_pen_down) < 0)
+		goto err4;
+	if (device_create_file(&tsc->spi->dev, &dev_attr_disable_ts) < 0)
+		goto err5;
 
 	r = input_register_device(idev);
 	if (r < 0) {
 		dev_err(&tsc->spi->dev, "can't register touchscreen device\n");
-		goto err4;
+		goto err6;
 	}
 
 	return 0;
-err4:
+err6:
 	device_remove_file(&tsc->spi->dev, &dev_attr_disable_ts);
+err5:
 	device_remove_file(&tsc->spi->dev, &dev_attr_pen_down);
+err4:
 	free_irq(ts->irq, tsc);
 err3:
 	tsc2301_ts_stop_scan(tsc);
Signature · 1 line
1.4.4.4
Quoted 1 line

From a3389f31581d6f2dc7f8885e33215a998f8911e0 Mon Sep 17 00:00:00 2001

From: Jarkko Nikula <[email protected]>
Date: Thu, 15 Mar 2007 08:59:47 +0200
Subject: [PATCH] SPI: Separate TSC2301 features under proper subsystem directories

Patch moves keypad, touchscreen and audio feature modules of the TSC2301 into kernel directories where those features are maintained. Respective TSC23001 Kconfig options changed also to be uniform with those subsystems.

Also some minor fixes for removing compilation time warnings and errors in case if some of the TSC2301 feature is not enabled.

TODO: Make tsc2301-mixer to conform with ASoC.

---
 drivers/input/keyboard/Kconfig         |    6 +
 drivers/input/keyboard/Makefile        |    1 +
 drivers/input/keyboard/tsc2301_kp.c    |  559 +++++++++++++++++
 drivers/input/touchscreen/Kconfig      |    6 +
 drivers/input/touchscreen/Makefile     |    1 +
 drivers/input/touchscreen/tsc2301_ts.c |  683 ++++++++++++++++++++
 drivers/spi/Kconfig                    |   20 -
 drivers/spi/Makefile                   |    4 -
 drivers/spi/tsc2301-core.c             |  302 ---------
 drivers/spi/tsc2301-kp.c               |  559 -----------------
 drivers/spi/tsc2301-mixer.c            | 1064 --------------------------------
 drivers/spi/tsc2301-ts.c               |  683 --------------------
 drivers/spi/tsc2301.c                  |  302 +++++++++
 include/linux/spi/tsc2301.h            |    8 +-
 sound/soc/codecs/Kconfig               |    6 +
 sound/soc/codecs/Makefile              |    2 +
 sound/soc/codecs/tsc2301_mixer.c       | 1064 ++++++++++++++++++++++++++++++++
 17 files changed, 2634 insertions(+), 2636 deletions(-)
drivers/input/keyboard/Kconfig +6 -0
index 0088e1c..6fefc4d 100644
@@ -239,4 +239,10 @@ config KEYBOARD_GPIO
 	  To compile this driver as a module, choose M here: the
 	  module will be called gpio-keys.
 
+config KEYBOARD_TSC2301
+	tristate "TSC2301 keypad support"
+	depends on SPI_TSC2301
+	help
+	  Say Y here for if you are using the keypad features of TSC2301.
+
 endif
drivers/input/keyboard/Makefile +1 -0
index 17e5ce0..f80aebe 100644
@@ -20,4 +20,5 @@ obj-$(CONFIG_KEYBOARD_OMAP)             += omap-keypad.o
 obj-$(CONFIG_OMAP_PS2)			+= innovator_ps2.o
 obj-$(CONFIG_KEYBOARD_AAED2000)         += aaed2000_kbd.o
 obj-$(CONFIG_KEYBOARD_GPIO)		+= gpio_keys.o
+obj-$(CONFIG_KEYBOARD_TSC2301)		+= tsc2301_kp.o
 
drivers/input/keyboard/tsc2301_kp.c new file +559 -0

559 lines not on this page · raw message

drivers/input/touchscreen/Kconfig +6 -0
index 6b46c9b..caac4d4 100644
@@ -159,4 +159,10 @@ config TOUCHSCREEN_UCB1400
 	  To compile this driver as a module, choose M here: the
 	  module will be called ucb1400_ts.
 
+config TOUCHSCREEN_TSC2301
+	tristate "TSC2301 touchscreen support"
+	depends on SPI_TSC2301
+	help
+	  Say Y here for if you are using the touchscreen features of TSC2301.
+
 endif
drivers/input/touchscreen/Makefile +1 -0
index 061bc14..ee27e0b 100644
@@ -18,3 +18,4 @@ obj-$(CONFIG_TOUCHSCREEN_TOUCHWIN)	+= touchwin.o
 obj-$(CONFIG_TOUCHSCREEN_UCB1400)	+= ucb1400_ts.o
 obj-$(CONFIG_TOUCHSCREEN_TSC2102)	+= tsc2102_ts.o
 obj-$(CONFIG_TOUCHSCREEN_OMAP)	+= omap/
+obj-$(CONFIG_TOUCHSCREEN_TSC2301)	+= tsc2301_ts.o
drivers/input/touchscreen/tsc2301_ts.c new file +683 -0

683 lines not on this page · raw message

drivers/spi/Kconfig +0 -20
index c98392c..1c86de7 100644
@@ -183,26 +183,6 @@ config SPI_TSC2301
 	  To compile this driver as a module, choose M here: the
 	  module will be called tsc2301.
 
-config SPI_TSC2301_KEYPAD
-	boolean "TSC2301 keypad support"
-	depends on SPI_TSC2301
-	select INPUT_KEYBOARD
-	help
-	  Say Y here for if you are using the keypad features of TSC2301.
-
-config SPI_TSC2301_TOUCHSCREEN
-	boolean "TSC2301 touchscreen support"
-	depends on SPI_TSC2301
-	select INPUT_TOUCHSCREEN
-	help
-	  Say Y here for if you are using the touchscreen features of TSC2301.
-
-config SPI_TSC2301_AUDIO
-	boolean "TSC2301 audio support"
-	depends on SPI_TSC2301 && SND
-	help
-	  Say Y here for if you are using the audio features of TSC2301.
-
 #
 # Add new SPI protocol masters in alphabetical order above this line
 #
drivers/spi/Makefile +0 -4
index bfa8ea3..a1ce7d0 100644
@@ -27,10 +27,6 @@ obj-$(CONFIG_SPI_OMAP_UWIRE)		+= omap_uwire.o
 obj-$(CONFIG_TSC2102)			+= tsc2102.o
 obj-$(CONFIG_SPI_AT25)		+= at25.o
 obj-$(CONFIG_SPI_TSC2301)		+= tsc2301.o
-tsc2301-objs					:= tsc2301-core.o
-tsc2301-$(CONFIG_SPI_TSC2301_TOUCHSCREEN)	+= tsc2301-ts.o
-tsc2301-$(CONFIG_SPI_TSC2301_KEYPAD)		+= tsc2301-kp.o
-tsc2301-$(CONFIG_SPI_TSC2301_AUDIO)		+= tsc2301-mixer.o
 # 	... add above this line ...
 
 # SPI slave controller drivers (upstream link)
drivers/spi/tsc2301-core.c deleted +0 -302

302 lines not on this page · raw message

drivers/spi/tsc2301-kp.c deleted +0 -559

559 lines not on this page · raw message

drivers/spi/tsc2301-mixer.c deleted +0 -1064

805 lines not on this page · raw message

drivers/spi/tsc2301-ts.c deleted +0 -683

683 lines not on this page · raw message

drivers/spi/tsc2301.c new file +302 -0

302 lines not on this page · raw message

include/linux/spi/tsc2301.h +4 -4
index adf460e..8121c87 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/Kconfig +6 -0
index ec2a278..7e6bc47 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/Makefile +2 -0
index 3249a6e..f551ef2 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/tsc2301_mixer.c new file +1064 -0

1,064 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.4.4.4
Quoted 1 line

From a13969da06868c009699eee19db824f143cdcedd Mon Sep 17 00:00:00 2001

From: Jarkko Nikula <[email protected]>
Date: Fri, 16 Mar 2007 14:00:50 +0200
Subject: [PATCH] ARM: OMAP: Update changed TSC2301 config names in N800 board files

---
 arch/arm/mach-omap2/board-n800-audio.c |    2 +-
 arch/arm/mach-omap2/board-n800.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/board-n800-audio.c +1 -1
index b5b107d..09119fb 100644

Lines of this file are not shown. View the raw message.

arch/arm/mach-omap2/board-n800.c +1 -1
index 69e5d36..bb805cf 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.4.4.4

Part of the diff is not shown here. View the raw message.

maintainer
#1 lore raw
Quoted 7 lines · Jarkko Nikula

First two patches here update recently pushed TSC2301 protocol driver:

http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=commit;h=a7b9b17c9025066cd05f555bbba5542bcf16df3a

Third one will change TSC2301 config names in N800 board files.

I'm sending these as attachments since first one is from Imre. These were generated against ftp://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git tree. I'll test them against mvista tree when cloning is ready...

Pushing today.

Tony

maintainer
#2 lore raw
Quoted 10 lines · Tony Lindgren
Quoted 7 lines · Jarkko Nikula

First two patches here update recently pushed TSC2301 protocol driver:

http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=commit;h=a7b9b17c9025066cd05f555bbba5542bcf16df3a

Third one will change TSC2301 config names in N800 board files.

I'm sending these as attachments since first one is from Imre. These were generated against ftp://www.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git tree. I'll test them against mvista tree when cloning is ready...

Pushing today.

Correction, using the split out better patches instead.

Tony