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

Wrong register written to in SPI driver #1338

Open
perkinsmg opened this issue Feb 6, 2025 · 0 comments
Open

Wrong register written to in SPI driver #1338

perkinsmg opened this issue Feb 6, 2025 · 0 comments

Comments

@perkinsmg
Copy link
Contributor

In the MXC_SPI_RevA2_SetTSControl function in spi_reva2.c, I see the code:

case MXC_SPI_TSCONTROL_SW_APP:
    spi->ctrl0 &= ~(MXC_F_SPI_REVA_CTRL0_SS_ACTIVE);
    spi->ctrl0 &= ~(MXC_F_SPI_REVA_CTRL2_SS_POL);
    break;

The second spi->ctrl0 write should be spi->ctrl2, as the SS_POL field is in ctrl2 not ctrl0.

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

No branches or pull requests

1 participant