Skip to content

Commit

Permalink
spi/xilinx: Use cached value of register
Browse files Browse the repository at this point in the history
The control register has not changed since the previous access.
Therefore we can use the cached value and safe one bus access.

Signed-off-by: Ricardo Ribalda Delgado <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
ribalda authored and broonie committed Jan 28, 2015
1 parent a87cbca commit 5b74d7a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/spi/spi-xilinx.c
Original file line number Diff line number Diff line change
@@ -271,7 +271,6 @@ static int xilinx_spi_txrx_bufs(struct spi_device *spi, struct spi_transfer *t)
* transmitter while the Isr refills the transmit register/FIFO,
* or make sure it is stopped if we're done.
*/
cr = xspi->read_fn(xspi->regs + XSPI_CR_OFFSET);
xspi->write_fn(cr | XSPI_CR_TRANS_INHIBIT,
xspi->regs + XSPI_CR_OFFSET);

0 comments on commit 5b74d7a

Please sign in to comment.