forked from STMicroelectronics/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: stm32/crc: protect from concurrent accesses
Protect STM32 CRC device from concurrent accesses. As we create a spinlocked section that increase with buffer size, we provide a module parameter to release the pressure by splitting critical section in chunks. Size of each chunk is defined in brust_size module parameter. By default burst_size=0, i.e. don't split incoming buffer. Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com> Change-Id: I1f57fbd5873a395b122b1a6e4d262fb4d95dff19 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/162546 Tested-by: Alexandre TORGUE <alexandre.torgue@st.com> Reviewed-by: Alexandre TORGUE <alexandre.torgue@st.com>
- Loading branch information
1 parent
c13c434
commit af5eb4b
Showing
1 changed file
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters