From: Kristoffer Ericson <kristoffer.ericson@gmail.com>
To: linux-sh@vger.kernel.org
Subject: Requestirq() = freeze for touchscreendriver
Date: Thu, 07 Feb 2008 01:06:00 +0000 [thread overview]
Message-ID: <20080207020600.1651cbf5.Kristoffer.ericson@gmail.com> (raw)
Greetings,
Been bugtracking touchscreen driver, seems like it gets stuck on IRQ request. irq = 35 in this case. Im still
bad at recalculating but vect 0x660 = 35?
I've rewritten the driver to platform driver (old driver been broken for approx 2-3months now anyways), so I've added it
to hp6xx_devices_setup to make it start with rest of devices (keyboard / leds / ....)
from my arch/sh/boards/hp6xx/setup.c:
static struct platform_device jornadats_device = {
.name = "jornada_ts",
.id = -1,
};
static struct platform_device *hp6xx_devices[] __initdata = {
&cf_ide_device,
&jornadakbd_device,
&jornadats_device,
&hp6xxled_device,
};
static void __init hp6xx_init_irq(void)
{
/* Gets touchscreen and powerbutton IRQ working */
plat_irq_setup_pins(IRQ_MODE_IRQ);
}
static int __init hp6xx_devices_setup(void)
{
return platform_add_devices(hp6xx_devices, ARRAY_SIZE(hp6xx_devices));
}
I got two other likely candidates :
1) the new base io_map I added (strange that nothing else fails though)
2) plat_irq_setup MUST be finished before hp6xx_devices_setup starts, otherwise
I suspect the IRQ3 would never reach IRQ_MODE.
static void __iomem *port_map(unsigned long port, unsigned int size)
{
/* this is for all drivers actually accepting io_offset */
if (0xf300<=port && port<=0xf31f)
port = port - 0xf000;
/* non-port? then just return it */
if (PXSEG(port))
return (void __iomem *)(port);
/* add base value and return it */
return (void __iomem *)(0xba000000 + port);
}
Ideas?
next reply other threads:[~2008-02-07 1:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-07 1:06 Kristoffer Ericson [this message]
2008-02-07 2:38 ` Requestirq() = freeze for touchscreendriver Paul Mundt
2008-02-07 13:24 ` Kristoffer Ericson
2008-02-08 2:57 ` Magnus Damm
2008-02-08 18:30 ` Kristoffer Ericson
2008-02-08 22:46 ` Kristoffer Ericson
2008-02-09 3:54 ` Paul Mundt
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=20080207020600.1651cbf5.Kristoffer.ericson@gmail.com \
--to=kristoffer.ericson@gmail.com \
--cc=linux-sh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox