How to solve “BUG: scheduling while atomic: swapper /0x00000103/0, CPU#0”? in TSC2007 Driver?

前端 未结 4 1956
礼貌的吻别
礼貌的吻别 2020-12-03 03:19

I found tsc2007 driver and modified according to our needs. Our firm is producing its own TI DM365 board. In this board we used TSC2007 and connected PENIRQ pin to GPIO0 of

4条回答
  •  盖世英雄少女心
    2020-12-03 03:39

    Thanks for the former two answers, in my case it was enough to disable the preemption:

    preempt_disable();
    
    // Your code with locks and schedule()
    
    preempt_enable();
    

提交回复
热议问题