Skip to content

spi: spi-qcom-qspi: Avoid some per-transfer overhead

Douglas Anderson linux-arm-msm linux-spi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Return error from runtime resume if dev_pm_opp_set_rate() fails.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2spi: spi-qcom-qspi: Avoid clock setting if not neededdrivers/spi/spi-qcom-qspi.c+31 -100 replies
2/2spi: spi-qcom-qspi: Set an autosuspend delay of 250 msdrivers/spi/spi-qcom-qspi.c+2 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMark BrownRajendra NayakMukesh Kumar SavaliyaAkash Asthana
SeriesR-b
1/2A-b R-b T-b R-b
2/2A-b R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/2] spi: spi-qcom-qspi: Avoid some per-transfer overhead

Not to be confused with the similar series I posed for the _other_ Qualcomm SPI controller (spi-geni-qcom) [1], this one avoids the overhead on the Quad SPI controller.

It's based atop the current Qualcomm tree including Rajendra's ("spi:
spi-qcom-qspi: Use OPP API to set clk/perf state"). As discussed in individual patches, these could ideally land through the Qualcomm tree with Mark's Ack.

Measuring:
* Before OPP / Interconnect patches reading all flash takes: ~3.4 seconds
* After OPP / Interconnect patches reading all flash takes: ~4.7 seconds
* After this patch reading all flash takes: ~3.3 seconds

[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/[email protected]

Changes in v2:
- Return error from runtime resume if dev_pm_opp_set_rate() fails.

Douglas Anderson (2):
spi: spi-qcom-qspi: Avoid clock setting if not needed
spi: spi-qcom-qspi: Set an autosuspend delay of 250 ms

 drivers/spi/spi-qcom-qspi.c | 43 ++++++++++++++++++++++++++++---------
 1 file changed, 33 insertions(+), 10 deletions(-)
Signature · 1 line
2.27.0.383.g050319c2ae-goog