From: leilk.liu@mediatek.com Date: Fri, 20 Nov 2015 02:21:18 +0000 (+0800) Subject: spi: mediatek: remove needless pair of writel()/readl() X-Git-Tag: v4.14-rc1~4035^2~2^4~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c3dbd35d4369ddb0f0e26dd329a6aab870703e2;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Matthias Brugger Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-mt65xx.c b/drivers/spi/spi-mt65xx.c index 563954a..2b3fcb8 100644 --- a/drivers/spi/spi-mt65xx.c +++ b/drivers/spi/spi-mt65xx.c @@ -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)