Skip to content

Wrong register written to in SPI driver #1338

Open
@perkinsmg

Description

@perkinsmg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions