Sorry I am completely out of sort here, should I register it on a PCI bus without any ID table? On 15 Apr 2016 7:43 p.m., "Gadre Nayan" <gadrenayan@gmail.com> wrote:
Oh offcourse, I forgot.
So then should a char driver interface suffice. On 15 Apr 2016 7:29 p.m., "Greg KH" <greg@kroah.com> wrote:
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