# MCP2515 CAN Data loss

**URL:** <https://forum.legato.io/t/mcp2515-can-data-loss/4928>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [January 3, 2020, 11:17am UTC](https://forum.legato.io/t/mcp2515-can-data-loss/4928 "2020-01-03T11:17:20Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [August 31, 2020, 2:06pm UTC](https://forum.legato.io/t/mcp2515-can-data-loss/4928/6 "2020-08-31T14:06:50Z")

</div>

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 ?

---

_[View the full topic](https://forum.legato.io/t/mcp2515-can-data-loss/4928)._
