Commit c88dd349b5a83c9efa4030176a5184a9a1440475
Committed by
Grant Likely
1 parent
9d15a3bac3
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
spi/spi-mpc512x-psc: init mode bits supported by the driver
The driver should setup mode bits it supports, otherwise adding an SPI device might fail even if the driver supports the requested SPI mode. Signed-off-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
drivers/spi/spi-mpc512x-psc.c
... | ... | @@ -438,6 +438,7 @@ |
438 | 438 | master->num_chipselect = pdata->max_chipselect; |
439 | 439 | } |
440 | 440 | |
441 | + master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; | |
441 | 442 | master->setup = mpc512x_psc_spi_setup; |
442 | 443 | master->transfer = mpc512x_psc_spi_transfer; |
443 | 444 | master->cleanup = mpc512x_psc_spi_cleanup; |