Hi @jyijyi ,
I will try local_irq_disable and enable and will update you . Onto the priority change
I have changed the priority in spi.c as shown below
struct sched_param param = { .sched_priority = 51 };
but when observed in the device it was still showing 50
ps -eo pid,pri,rtprio,cmd | grep mcp
9377 90 50 [irq/131-mcp251x]
9378 39 - [mcp251x_wq]
10167 19 - grep mcp
Am i going in the right direction ?