drivers: smbus: stm32: add support for pcall api #97188
Draft
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.
Add SMBus Process Call API for STM32.
The Process Call API is very useful, as it sends a command (a 16-bit word split over two data bytes) to the target, and then waits for the target to return a result (similarly a 16-bit word) dependent on the command.
This implementation also supports PEC mode (packet error checking) and is dependent on PEC support already being supported in-tree.
For more details, please see Section 6.5.6 of the SMBus 3.1 Specification.
https://smbus.org/specs/SMBus_3_1_20180319.pdf
This change should only be merged after #96691