spi: spi-geni-qcom: Don't program CS_TOGGLE again and again
authorDouglas Anderson <dianders@chromium.org>
Sat, 12 Sep 2020 21:08:00 +0000 (14:08 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 14 Sep 2020 14:50:13 +0000 (15:50 +0100)
commit14ac4e049dc1183440960f177b60b54357e54d90
treea3e09c8c7af9000e1b4e947945e3b2a5035213c0
parentfc129a43aa2705770dc45b2e9c506d2617fd5863
spi: spi-geni-qcom: Don't program CS_TOGGLE again and again

We always toggle the chip select manually in spi-geni-qcom so that we
can properly implement the Linux API.  There's no reason to program
this to the hardware on every transfer.  Program it once at init and
be done with it.

This saves some part of a microsecond of overhead on each transfer.
While not really noticeable on any real world benchmarks, we might as
well save the time.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200912140730.2.I33e571179986850b4ec17042e813d0b08fb1b9c1@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-geni-qcom.c