<p dir="ltr">Oh offcourse, I forgot.</p>
<p dir="ltr">So then should a char driver interface suffice. </p>
<div class="gmail_quote">On 15 Apr 2016 7:29 p.m., "Greg KH" <<a href="mailto:greg@kroah.com">greg@kroah.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Apr 15, 2016 at 01:59:12PM +0530, Gadre Nayan wrote:<br>
> Dear all,<br>
><br>
> I am trying to test a dummy UIO driver to get timer interrupt events<br>
> in Userspace.<br>
><br>
> I register the UIO driver as a platform driver:<br>
><br>
> static struct platform_device *uio_dummy_device;<br>
><br>
> static struct device_driver uio_dummy_driver = {<br>
> .name = "uio_dummy",<br>
> .bus = &platform_bus_type,<br>
> .probe = uio_dummy_probe,<br>
> .remove = uio_dummy_remove,<br>
> .shutdown = uio_dummy_shutdown,<br>
> };<br>
><br>
> /*<br>
> * Main initialization/remove routines<br>
> */<br>
> static int __init uio_dummy_init(void)<br>
> {<br>
> printk("uio_dummy_init( )\n" );<br>
> uio_dummy_device = platform_device_register_simple("uio_dummy", -1,<br>
> NULL, 0);<br>
<br>
Why are you using a platform driver and device on x86? That's not going<br>
to work at all, as your device doesn't have an irq. Please use this on<br>
a "real" device that has an interrupt assigned to it.<br>
<br>
hope this helps,<br>
<br>
greg k-h<br>
</blockquote></div>