Skip to content

spi: A better solution for cros_ec_spi reliability

Douglas Anderson linux-rockchip linux-spi lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 7 repliesIn review
  2. v33 patches 3 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches16 repliesSuperseded

Changes in v4 from the cover letter

- No needless init of err in cros_ec_spi_devm_high_pri_alloc (Guenter).
- Removed blank lines near #includes (Guenter).
- Switch to kthread_create_worker() and fix error handling (Guenter).
- Cleaner devm code (Guenter).

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3platform/chrome: cros_ec_spi: Move to real time priority for transfersdrivers/platform/chrome/cros_ec_spi.c+53 -122 replies
2/3spi: Allow SPI devices to request the pumping thread be realtimedrivers/spi/spi.c include/linux/spi/spi.h+32 -63 replies
3/3platform/chrome: cros_ec_spi: Request the SPI thread be realtimedrivers/platform/chrome/cros_ec_spi.c+1 -02 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchGuenter RoeckEnric Balletbo i Serra
1/3R-b
2/3R-b R-b T-b T-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] spi: A better solution for cros_ec_spi reliability

This series is a much better solution for getting the Chrome OS EC to talk reliably.

Patch #1 in this series is the most important. It can land any time.

Patch #2 in this series (a SPI framework patch) needs to land before patch #3. Note that patches #2 and #3 really just fix a corner case and just having patch #1 is the most important. We don't end up on the pumping thread very often.

Note:
- If you want some history on investigation done here, feel free to peruse the Chrome OS bug: <https://crbug.com/948742>.

Changes in v4:
- No needless init of err in cros_ec_spi_devm_high_pri_alloc (Guenter).
- Removed blank lines near #includes (Guenter).
- Switch to kthread_create_worker() and fix error handling (Guenter).
- Cleaner devm code (Guenter).

Changes in v3:
- cros_ec realtime patch replaces revert; now patch #1
- SPI core change now like patch v1 patch #2 (with name "rt").
- Updated description and variable name since we no longer force.

Changes in v2:
- Now only force transfers to the thread for devices that want it.
- Squashed patch #1 and #2 together.
- Renamed variable to "force_rt_transfers".
- Renamed variable to "force_rt_transfers".

Douglas Anderson (3):
platform/chrome: cros_ec_spi: Move to real time priority for transfers
spi: Allow SPI devices to request the pumping thread be realtime platform/chrome: cros_ec_spi: Request the SPI thread be realtime

 drivers/platform/chrome/cros_ec_spi.c | 66 ++++++++++++++++++++++-----
 drivers/spi/spi.c                     | 36 ++++++++++++---
 include/linux/spi/spi.h               |  2 +
 3 files changed, 86 insertions(+), 18 deletions(-)
Signature · 1 line
2.21.0.1020.gf2820cf01a-goog