Skip to content
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: crypto: remove assertions on device handlers #6782

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

etienne-lms
Copy link
Contributor

Remove assertions added by the commit referred below. They are useless since the handlers are registered only if the related device (stm32_cryp or stm32_saes) has its driver successfully probed. These assertion also prevent enabling both CFG_STM32_SAES and CFG_STM32_CRYP for a platform which is a valid configuration for when we rely on the DT to state which of both is enabled.

Fixes: 03de2c7 ("drivers: crypto: stm32_saes: fallback to software on 192bit AES keys")

@etienne-lms
Copy link
Contributor Author

@tbourgoi, could you have a look at this change?

@tbourgoi
Copy link
Contributor

Hello,
Fix looks OK to me, thanks.
I think there is some other condition that can be removed, but they are not related to this patch so I'll do them in a another PR.
You can add my tag
Reviewed-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>

Remove assertions added by the commit referred below. They are useless
since the handlers are registered only if the related device (stm32_cryp
or stm32_saes) has its driver successfully probed. These assertion also
prevent enabling both CFG_STM32_SAES and CFG_STM32_CRYP for a platform
which is a valid configuration for when we rely on the DT to state
which of both is enabled.

Fixes: 03de2c7 ("drivers: crypto: stm32_saes: fallback to software on 192bit AES keys")
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
Reviewed-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants