mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
spi-geni-qcom: initialize mode related registers to 0
setup_fifo_params assumes these will be zero, it won't write these registers if the initial mode is zero. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Link: https://patch.msgid.link/20251120211204.24078-4-jonathan@marek.ca Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
fb2bbe3838
commit
739062a9f1
|
|
@ -675,6 +675,12 @@ static int spi_geni_init(struct spi_geni_master *mas)
|
|||
case 0:
|
||||
mas->cur_xfer_mode = GENI_SE_FIFO;
|
||||
geni_se_select_mode(se, GENI_SE_FIFO);
|
||||
/* setup_fifo_params assumes that these registers start with a zero value */
|
||||
writel(0, se->base + SE_SPI_LOOPBACK);
|
||||
writel(0, se->base + SE_SPI_DEMUX_SEL);
|
||||
writel(0, se->base + SE_SPI_CPHA);
|
||||
writel(0, se->base + SE_SPI_CPOL);
|
||||
writel(0, se->base + SE_SPI_DEMUX_OUTPUT_INV);
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user