mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
spi: mediatek: remove needless pair of writel()/readl()
It's not need to re-read and re-write SPI_CMD_REG, so remove it. Signed-off-by: Leilk Liu <leilk.liu@mediatek.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
6e6a9cd461
commit
4c3dbd35d4
1 changed files with 0 additions and 3 deletions
|
@ -154,9 +154,6 @@ static int mtk_spi_prepare_message(struct spi_master *master,
|
|||
reg_val |= SPI_CMD_CPOL;
|
||||
else
|
||||
reg_val &= ~SPI_CMD_CPOL;
|
||||
writel(reg_val, mdata->base + SPI_CMD_REG);
|
||||
|
||||
reg_val = readl(mdata->base + SPI_CMD_REG);
|
||||
|
||||
/* set the mlsbx and mlsbtx */
|
||||
if (chip_config->tx_mlsb)
|
||||
|
|
Loading…
Add table
Reference in a new issue