All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vasily Khoruzhick <anarsoul@gmail.com>
To: linux-arm-kernel@lists.infradead.org,
	Ben Dooks <ben-linux@fluff.org>,
	linux-input@vger.kernel.org
Subject: [PATCH] Add resources description for s3c24xx ts driver
Date: Thu, 18 Feb 2010 16:01:14 +0200	[thread overview]
Message-ID: <201002181601.20625.anarsoul@gmail.com> (raw)


[-- Attachment #1.1: Type: Text/Plain, Size: 340 bytes --]

Following patch adds resource description for s3c24xx ts driver.
Without this patch driver fails to initialize with "no resource for interrupt" 
message.

Anyway, even with this patch driver stops reporting events after few presses, 
I'll investigate on it later.

Btw, does this driver work at least for anyone?

Regards
Vasily

[-- Attachment #1.2: 0001-Add-resources-description-for-s3c24xx-ts-driver.patch --]
[-- Type: text/x-patch, Size: 1277 bytes --]

From e92886de877deefed647d4313d2e07fe1b5307d6 Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <anarsoul@gmail.com>
Date: Thu, 18 Feb 2010 15:53:50 +0200
Subject: [PATCH] Add resources description for s3c24xx ts driver

Otherwise driver fails during initialization.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
---
 arch/arm/plat-s3c24xx/devs.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c
index 7f686a3..83c1507 100644
--- a/arch/arm/plat-s3c24xx/devs.c
+++ b/arch/arm/plat-s3c24xx/devs.c
@@ -185,9 +185,27 @@ void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *pd)
 }
 
 /* Touchscreen */
+
+static struct resource s3c_ts_resource[] = {
+	[0] = {
+		.start = S3C24XX_PA_ADC,
+		.end   = S3C24XX_PA_ADC + S3C24XX_SZ_ADC - 1,
+		.flags = IORESOURCE_MEM,
+	},
+	[1] = {
+		.start = IRQ_TC,
+		.end   = IRQ_TC,
+		.flags = IORESOURCE_IRQ,
+	},
+
+};
+
 struct platform_device s3c_device_ts = {
 	.name		  = "s3c2410-ts",
 	.id		  = -1,
+	.dev.parent	= &s3c_device_adc.dev,
+	.num_resources	  = ARRAY_SIZE(s3c_ts_resource),
+	.resource	  = s3c_ts_resource,
 };
 EXPORT_SYMBOL(s3c_device_ts);
 
-- 
1.7.0


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: anarsoul@gmail.com (Vasily Khoruzhick)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Add resources description for s3c24xx ts driver
Date: Thu, 18 Feb 2010 16:01:14 +0200	[thread overview]
Message-ID: <201002181601.20625.anarsoul@gmail.com> (raw)

Following patch adds resource description for s3c24xx ts driver.
Without this patch driver fails to initialize with "no resource for interrupt" 
message.

Anyway, even with this patch driver stops reporting events after few presses, 
I'll investigate on it later.

Btw, does this driver work at least for anyone?

Regards
Vasily
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-resources-description-for-s3c24xx-ts-driver.patch
Type: text/x-patch
Size: 1230 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100218/8d0b0ec3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100218/8d0b0ec3/attachment.sig>

             reply	other threads:[~2010-02-18 14:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18 14:01 Vasily Khoruzhick [this message]
2010-02-18 14:01 ` [PATCH] Add resources description for s3c24xx ts driver Vasily Khoruzhick
2010-02-18 15:00 ` Vasily Khoruzhick
2010-02-18 15:00   ` Vasily Khoruzhick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201002181601.20625.anarsoul@gmail.com \
    --to=anarsoul@gmail.com \
    --cc=ben-linux@fluff.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.