From fa9ae697b0502084d4adf9de48235a876435561b Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Wed, 27 Dec 2017 21:35:36 -0500 Subject: after switching the position of 4 in column_pins[10] the problem persisted, i have added lines at the end of init_skey() that explictly set those two pins as input, this is to help debug the issue] --- skey.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skey.c b/skey.c index 590b682..0ffe0cd 100644 --- a/skey.c +++ b/skey.c @@ -192,6 +192,9 @@ static int __init skey_init (void) { printk("skey: setting up update thread...\n"); update_task = kthread_run(skey_update_thread, NULL, "skey_update_thread"); printk(KERN_INFO "skey: module finished initiating\n"); + //explicitly sets pin 4 and 15 to be inputs. + gpio_direction_input(4); + gpio_direction_input(15); return 0; } /* -- cgit v1.1