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: spi: fix the bug for atcspi200 #72831

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

Conversation

kevinwang821020
Copy link
Contributor

Fixe the bug in some corner case when spi using dma scatter transfer mode.
Mainly to modify the error in the calculation of the block count and the size contained when the lengths of tx and rx are not equal.
This change has been verified on the adp_xc7k/ae350 board.

Fixe the bug in some corner case when spi using dma scatter
transfer mode.
Mainly to modify the error in the calculation of the block count
and the size contained when the lengths of tx and rx are not equal.

Signed-off-by: Kevin Wang <kevinwang821020@google.com>
Copy link
Collaborator

@tbursztyka tbursztyka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If find it weird that you are getting rid of spi_context for checking on rx/tx buf. Can you explain why it does not fit your driver?

@@ -23,7 +23,6 @@ typedef void (*atcspi200_cfg_func_t)(void);
struct stream {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rewrite the commit title? "fix the bug" is way too general. Which bug?

Something more self-depicting would be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: SPI SPI bus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants