vaishnavachath / mikrobus_device

Simple Kernel Module to Instantiate Click Boards on the Mikrobus
3 stars 1 forks source link

Interrupt over Greybus GPIO Fails #1

Closed vaishnavachath closed 5 years ago

vaishnavachath commented 5 years ago

[ 9459.614569] GPIO_TEST: Initializing the GPIO_TEST LKM [ 9459.642664] gpio gbphy1: gpio 0 direction was 255 (should be 0 or 1) [ 9459.690648] gpio gbphy1: gpio 1 direction was 255 (should be 0 or 1) [ 9459.722655] ------------[ cut here ]------------ [ 9459.722714] WARNING: CPU: 0 PID: 6690 at drivers/gpio/gpiolib.c:2484 gpiod_get_raw_value+0x84/0xc0 [ 9459.722721] Modules linked in: mytestmod(O+) 8021q garp mrp stp llc rndis_host cdc_ether usbnet mii usb_f_fs dummy_hcd(O) gb_uart(O) gb_gpio(O) gb_spi(O) gb_spilib(O) gb_i2c(O) gb_gbphy(O) gb_es2(O) greybus(O) pvrsrvkm(O) pruss_soc_bus evdev uio_pdrv_genirq uio usb_f_mass_storage usb_f_acm u_serial usb_f_ecm iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 usb_f_rndis u_ether nf_nat_ipv4 nf_nat nf_conntrack libcomposite iptable_mangle iptable_filter spidev pru_rproc pruss pruss_intc ip_tables x_tables [last unloaded: mytestmod] [ 9459.722930] CPU: 0 PID: 6690 Comm: insmod Tainted: G W O 4.14.108-ti-r108 #1 [ 9459.722936] Hardware name: Generic AM33XX (Flattened Device Tree) [ 9459.722975] [] (unwind_backtrace) from [] (show_stack+0x20/0x24) [ 9459.722993] [] (show_stack) from [] (dump_stack+0x80/0x94) [ 9459.723009] [] (dump_stack) from [] (warn+0xf8/0x110) [ 9459.723021] [] (warn) from [] (warn_slowpath_null+0x30/0x38) [ 9459.723034] [] (warn_slowpath_null) from [] (gpiod_get_raw_value+0x84/0xc0) [ 9459.723066] [] (gpiod_get_raw_value) from [] (ebbgpio_init+0xa8/0x1000 [mytestmod]) [ 9459.723119] [] (ebbgpio_init [mytestmod]) from [] (do_one_initcall+0x64/0x19c) [ 9459.723143] [] (do_one_initcall) from [] (do_init_module+0x74/0x20c) [ 9459.723158] [] (do_init_module) from [] (load_module+0x2208/0x2944) [ 9459.723171] [] (load_module) from [] (SyS_finit_module+0xdc/0x110) [ 9459.723189] [] (SyS_finit_module) from [] (ret_fast_syscall+0x0/0x54) [ 9459.723197] ---[ end trace 5e39dc540391909e ]--- [ 9459.738808] gpio gbphy1: gpio 1 value was 255 (should be 0 or 1) [ 9459.738831] GPIO_TEST: The button state is currently: 1 [ 9459.738843] GPIO_TEST: The button is mapped to IRQ: 121 [ 9459.770705] GPIO_TEST: The interrupt request result is: 0

vaishnavachath commented 5 years ago

https://github.com/vaishnav98/gbsim/commit/a66c733a848f7fdb057a374809606295b9bbd611