From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: UIO driver test
Date: Fri, 15 Apr 2016 06:59:53 -0700 [thread overview]
Message-ID: <20160415135953.GC8315@kroah.com> (raw)
In-Reply-To: <CAKJ7aR5RK-a-cKxYFBVU5jCEyaKZ_1Y-kYGMasiRQSJSk6XtXQ@mail.gmail.com>
On Fri, Apr 15, 2016 at 01:59:12PM +0530, Gadre Nayan wrote:
> Dear all,
>
> I am trying to test a dummy UIO driver to get timer interrupt events
> in Userspace.
>
> I register the UIO driver as a platform driver:
>
> static struct platform_device *uio_dummy_device;
>
> static struct device_driver uio_dummy_driver = {
> .name = "uio_dummy",
> .bus = &platform_bus_type,
> .probe = uio_dummy_probe,
> .remove = uio_dummy_remove,
> .shutdown = uio_dummy_shutdown,
> };
>
> /*
> * Main initialization/remove routines
> */
> static int __init uio_dummy_init(void)
> {
> printk("uio_dummy_init( )\n" );
> uio_dummy_device = platform_device_register_simple("uio_dummy", -1,
> NULL, 0);
Why are you using a platform driver and device on x86? That's not going
to work at all, as your device doesn't have an irq. Please use this on
a "real" device that has an interrupt assigned to it.
hope this helps,
greg k-h
next prev parent reply other threads:[~2016-04-15 13:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-15 8:29 UIO driver test Gadre Nayan
2016-04-15 8:45 ` anish singh
2016-04-15 10:01 ` Gadre Nayan
2016-04-15 13:59 ` Greg KH [this message]
2016-04-15 14:13 ` Gadre Nayan
2016-04-15 14:15 ` Gadre Nayan
2016-04-15 14:21 ` Greg KH
2016-04-16 1:33 ` Gadre Nayan
2016-04-16 1:37 ` Greg KH
2016-04-15 14:20 ` Greg KH
2016-04-15 17:36 ` Mandeep Sandhu
2016-04-16 5:13 ` Gadre Nayan
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=20160415135953.GC8315@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.kernelnewbies.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.