Re: kernel panic on gpio-keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 11, 2013 at 08:17:29PM +0100, Paul Cercueil wrote:
> Hi there,
> 
> I am trying to use the gpio-keys driver to inject joystick events.
> There seems to be some basic support of it, looking at <linux/gpio_keys.h>.
> 
> However, registering the following will trigger a kernel panic in
> the kernel:
> 
> static struct gpio_keys_button my_buttons[] {
> 	{
> 		.gpio = GPIO_FOO,
> 		.type = EV_ABS,
> 		.code = ABS_HAT0X,
> 		.value = 1,
> 	},
> };
> 
> (tested on kernel 3.12).
> 
> I don't know well the input subsystem, so I have no idea of what is
> going wrong. Could anybody try to at least reproduce the issue?

It woudl be helpful if you poster the stack trace from panic so we'd
have an idea where the fault happens.

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux