]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita1184355246dc7d81f0a0aef6931874a405997dc
treea3e09c8c7af9000e1b4e947945e3b2a5035213c0
parent05c8203f1f9403a3e31312aef88e33573fe68ce6
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