-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
drivers: flash: spi: Move to using select in Kconfig for SPI bus #51598
drivers: flash: spi: Move to using select in Kconfig for SPI bus #51598
Conversation
9bbdb01
to
94c96f4
Compare
Marking DNM to allow some board maintainer feedback based on @de-nordic's comment. |
@galak Anyone in particular we should ping? |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
@galak is the DNM label still applicable? |
@henrikbrixandersen, @dleach02 , @danieldegrasse can you guys take a look |
@pdgendt looks like this needs a rebase to resolve a merge conflict. |
94c96f4
to
7803061
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Architecture WG:
|
Dismissing as per architecture group review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit concerned on selecting higher level SPI from drivers.
One concern is the stuck-symbol which may occur when re-configuring.
Second concern is the select
always kicking in, meaning users cannot get rid of a select
as well as select
overruling any depends on
(a behavior which often surprises users)
There are some general design discussions / concerns as well, but would go to far to list everything here.
I acknowledge the limitation of current Kconfig / dts implementation wrt. scalability as described by df81fef
To accommodate concerns stated above we should see if a corresponding hidden (promptless) symbol should be introduced in addition to, e.g menuconfig SPI
.
But that is considered outside the scope of this PR.
Approving with the concerns given above.
Move to using 'select SPI' instead of 'depends on SPI' (see commit df81fef for more details) Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
The Kconfig symbol for CONFIG_SPI_NOR is selected by default if a compatible device is enabled. Remove obsolete board config files. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
The Kconfig symbol CONFIG_SPI_FLASH_AT45 is selected by default if a compatible device is enabled. Remove obsolete config entry. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
7803061
to
07f7cfa
Compare
@pdgendt I've rebased the branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ref: #51598 (review)
select
the SPI bus for flash controllers