Commit 0e801d54 authored by Mark Brown's avatar Mark Brown

Merge series "spi: spi-geni-qcom: Avoid a bunch of per-transfer overhead" from...

Merge series "spi: spi-geni-qcom: Avoid a bunch of per-transfer overhead" from Douglas Anderson <dianders@chromium.org>:

This series tries to reduce a whole bunch of overhead in each SPI
transfer.  Much of this overhead is new with the recent interconnect
changes, but even without those changes we still had some overhead
that we could avoid.  Let's avoid all of it.

These changes are atop the Qualcomm tree to avoid merge conflicts.  If
they look good, the most expedient way to land them is probably to get
Ack's from Mark and land then via the Qualcomm tree.

Most testing was done on the Chrome OS 5.4 tree, but sanity check was
done on mainline.

Douglas Anderson (3):
  spi: spi-geni-qcom: Avoid clock setting if not needed
  spi: spi-geni-qcom: Set an autosuspend delay of 250 ms
  spi: spi-geni-qcom: Get rid of most overhead in prepare_message()

 drivers/spi/spi-geni-qcom.c | 67 ++++++++++++++++++-------------------
 1 file changed, 32 insertions(+), 35 deletions(-)

--
2.27.0.383.g050319c2ae-goog
parents 411b0f30 cfdab2cd
...@@ -619,6 +619,8 @@ static int spi_geni_probe(struct platform_device *pdev) ...@@ -619,6 +619,8 @@ static int spi_geni_probe(struct platform_device *pdev)
init_completion(&mas->cancel_done); init_completion(&mas->cancel_done);
init_completion(&mas->abort_done); init_completion(&mas->abort_done);
spin_lock_init(&mas->lock); spin_lock_init(&mas->lock);
pm_runtime_use_autosuspend(&pdev->dev);
pm_runtime_set_autosuspend_delay(&pdev->dev, 250);
pm_runtime_enable(dev); pm_runtime_enable(dev);
ret = spi_geni_init(mas); ret = spi_geni_init(mas);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment