-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are many references to CONFIG_SPI_DMAPRIO in the kernel but it is not defined in none Kconfig or source file #11932
Comments
I think this is more common problem. You can find many ifdefs with the |
Another problem are definitions like this:
where CONFIG_XXX is not defined in Kconfig at all. There are many places like this in the code. Such definitions should be handled by the default statement in Kconfig. |
Agree! |
Maybe @patacongo knows what happened to that definition. |
For STM32, it looks like the the configuration never existed. It looks like I cloned it from somewhere else in:
Where
CONFIG_SPI_DMAPRIO did not exist then (and probably never existed):
There is only a single definition of a DMAPRIO in all of the Kconfigs (for SDIO). |
There is only a single DMA priority for SPI. If I wanted multiple SPI DMAs with different priorities, a single SPI_DMAPRIO value would not support that. |
I think a modification at some eons damaged few SPI drivers, there are references to CONFIG_SPI_DMAPRIO but without any definition of it.
I didn't investigate further, but probably some boards could be non-functional now.
Or maybe people started copying it blindly from stm32_spi.c. This is a point of attention. @raiden00pl did you notice it?
The text was updated successfully, but these errors were encountered: