AnsweredAssumed Answered

Kernel Panic in imx6ull

Question asked by mathew_k_t on May 9, 2018
Latest reply on May 31, 2018 by mathew_k_t

i.MX Processorsigorpadykov



I'm using iMX6ULL custom board. In my application, I read data from two AFE4490 and iMX6 reads data registers after the ADC_READY interrupt(pulse width 0.24us). I configured ADC_READY pins as gpio-keys. In ISR, it generates a uevent as below


static void gpio_keys_gpio_work_func(struct work_struct *work)
    struct gpio_button_data *bdata =container_of(work, struct gpio_button_data,;
    char *envp[2];
    char state_buf[10];


    if (bdata->irq == 36) {
        snprintf(state_buf, sizeof(state_buf),"STATE=%s", "1");
        envp[0] = state_buf;


        envp[1] = NULL;
        kobject_uevent_env(&bdata->input->dev.kobj, KOBJ_ONLINE, envp);


iMX6 generates interrupts on ADC_READY signal.



1. But i'm not getting any events at userspace. What's the issue in the configuration?

2. After 30 minutes, kernel panic occurs due to out of Memory issue. How to clear uevent buffer?



Best Regards