summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-omap2-mcspi.c
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2020-06-27 01:19:50 +0300
committerMark Brown <broonie@kernel.org>2020-06-29 21:14:06 +0300
commit638d8488ae00d2e5dd5033804e82b458d3cf85b1 (patch)
tree7003e64d2ee9c5b131a59b355a13f33b39a8c127 /drivers/spi/spi-omap2-mcspi.c
parent1ac6f21a948b45a49737a5eff6b4dae9f37a8dc0 (diff)
downloadlinux-638d8488ae00d2e5dd5033804e82b458d3cf85b1.tar.xz
spi: spi-geni-qcom: Don't set the cs if it was already right
Setting the chip select on the Qualcomm geni SPI controller isn't exactly cheap. Let's cache the current setting and avoid setting the chip select if it's already right. Using "flashrom" to read or write the EC firmware on a Chromebook shows roughly a 25% reduction in interrupts and a 15% speedup. Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20200626151946.1.I06134fd669bf91fd387dc6ecfe21d44c202bd412@changeid Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
0 files changed, 0 insertions, 0 deletions