Skip to content

nvmem: qfprom: Avoid untouchable regions

Evan Green linux-arm-msm linux-devicetree lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 5 repliesIn review
  2. v24 patches 6 repliesSuperseded
  3. v13 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- Fixed example (Doug and rob-bot)
- Use min()/max() macros instead of defining my own (Doug)
- Comment changes to indicate sorting (Doug)
- Add function to validate keepouts are proper (Doug)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: nvmem: Add soc qfprom compatible stringsDocumentation/devicetree/bindings/nvmem/qcom,qfprom.yaml+14 -31 reply
2/4arm64: dts: qcom: sc7180: Add soc-specific qfprom compat stringarch/arm64/boot/dts/qcom/sc7180.dtsi+1 -10 replies
3/4nvmem: core: Add support for keepout regionsdrivers/nvmem/core.c include/linux/nvmem-provider.h+166 -42 replies
4/4nvmem: qfprom: Don't touch certain fusesdrivers/nvmem/qfprom.c+30 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDouglas AndersonRob Herring
1/4R-b
2/4R-b
3/4
4/4R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/4] nvmem: qfprom: Avoid untouchable regions

Certain fuses are protected by the XPU such that the AP cannot access them. Attempting to do so causes an SError. Introduce an SoC-specific compatible string, and introduce support into the nvmem core to avoid accessing specified regions. Then use those new elements in the qfprom driver to avoid SErrors when usermode accesses certain registers.

Changes in v3:
- Fixed example (Doug and rob-bot)
- Use min()/max() macros instead of defining my own (Doug)
- Comment changes to indicate sorting (Doug)
- Add function to validate keepouts are proper (Doug)

Changes in v2:
- Add other soc compatible strings (Doug)
- Fix compatible string definition (Doug)
- Introduced keepout regions into the core (Srini)
- Use new core support in qfprom (Srini)

Evan Green (4):
dt-bindings: nvmem: Add soc qfprom compatible strings
arm64: dts: qcom: sc7180: Add soc-specific qfprom compat string
nvmem: core: Add support for keepout regions
nvmem: qfprom: Don't touch certain fuses

 .../bindings/nvmem/qcom,qfprom.yaml           |  17 +-
 arch/arm64/boot/dts/qcom/sc7180.dtsi          |   2 +-
 drivers/nvmem/core.c                          | 153 +++++++++++++++++-
 drivers/nvmem/qfprom.c                        |  30 ++++
 include/linux/nvmem-provider.h                |  17 ++
 5 files changed, 211 insertions(+), 8 deletions(-)
Signature · 1 line
2.26.2