michallenc opened a new pull request, #15717:
URL: https://github.com/apache/nuttx/pull/15717

   ## Summary
   There was a missing QSPI locking for `w25qxxxjv_get_die_from_addr` function. 
We can't have the lock directly in `w25qxxxjv_get_die_from_addr` because the 
function is called from already locked function `w25qxxxjv_erase_sector`.
   
   ## Impact
   
   Fix missing lock, could prevent incorrect access to the flash in some cases.
   
   ## Testing
   Tested on SAMv7 custom board. I have encountered this problem with the flash 
and QSPI DMA with two threads accessing the flash (one SmartFS, other BCH layer 
on MTD device). Adding lock fixed the QSPI command transfer being stuck 
indefinitely waiting on the transfer to finished (the bit was probably clear by 
the other thread). 
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to