Repository navigation
arch/arm: remove undefined CONFIG_SPI_DMAPRIO references - #20773
Merged
Merged
Conversation
Swatantra-66
requested review from
acassis,
antmerlino,
davids5,
gustavonihei,
jerpelea,
pkarashchenko,
raiden00pl and
xiaoxiang781216
as code owners
October 18, 2026 13:26
|
Swatantra-66
force-pushed
the
fix/arm-spi-dmaprio-cleanup
branch
from
October 18, 2026 14:10
ebb1972 to
5767c3a
Compare
xiaoxiang781216
previously approved these changes
Oct 18, 2026
Swatantra-66
force-pushed
the
fix/arm-spi-dmaprio-cleanup
branch
from
October 18, 2026 14:50
5767c3a to
809b7ea
Compare
Contributor
|
@Swatantra-66 please drop the merge patch. |
As identified in issue apache#11932, CONFIG_SPI_DMAPRIO was an artifact cloned from the SDIO driver into STM32 SPI in 2012, but was never defined in any Kconfig file. Subsequent ARM SPI drivers (STM32 variants and AT32) copied the block verbatim, leaving dead #if defined(CONFIG_SPI_DMAPRIO) checks and dead #error "Illegal value for CONFIG_SPI_DMAPRIO" directives. Because CONFIG_SPI_DMAPRIO was never defined in Kconfig, drivers always fell back to the default DMA priorities (e.g., DMA_CCR_PRIMED or DMA_SCR_PRILO). This patch removes the dead #if checks and dead #error directives across all 14 affected SPI and I2S driver files, directly assigning the appropriate default DMA priority. Also fixes a missing closing parenthesis in stm32wl5_spi.c. Fixes apache#11932. Signed-off-by: Swatantra Yadav <[email protected]>
Swatantra-66
force-pushed
the
fix/arm-spi-dmaprio-cleanup
branch
from
October 18, 2026 19:24
cdcd626 to
c3909d2
Compare
xiaoxiang781216
approved these changes
Oct 18, 2026
Contributor
Author
|
Done @xiaoxiang781216 , I mistakenly clicked the Update branch button on the GitHub UI which created that merge commit. I have dropped the merge patch and rebased the branch cleanly on top of |
acassis
approved these changes
Oct 19, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
As discussed in issue #11932 by @acassis, @raiden00pl, and @patacongo,
CONFIG_SPI_DMAPRIOwas an artifact cloned from the SDIO driver into STM32 SPI in 2012, but was never defined in any Kconfig file. Subsequent ARM SPI drivers (STM32 variants and AT32) copied the block verbatim, leaving dead#if defined(CONFIG_SPI_DMAPRIO)checks and dead#error "Illegal value for CONFIG_SPI_DMAPRIO"directives.Because
CONFIG_SPI_DMAPRIOwas never defined in Kconfig, drivers always fell back to the default DMA priorities (e.g.,DMA_CCR_PRIMEDorDMA_SCR_PRILO).This PR:
#ifchecks and dead#errordirectives across all 14 affected SPI and I2S driver files, directly assigning the appropriate default DMA priority.#elif defined(CONFIG_STM32_STM32WL5XXX_CPU1)instm32wl5_spi.c.switch/caseindentations and missing blank lines after declarations) in the touched files to ensure full compliance with NuttXnxstyle.Fixes #11932.
Impact
#errordirectives.stm32wl5_spi.c.Testing
I confirm that changes are verified on local setup:
Verification Details:
tools/nxstyleon all 14 affected files:git grep CONFIG_SPI_DMAPRIOconfirms 0 remaining references across the entire repository.