Skip to content

soc: qcom: Add SoC info driver

Vaishali Thakkar linux-arm-msm lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 5 repliesIn review
  2. v55 patches 1 replySuperseded
  3. v45 patches 16 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v35 patches5 repliesSuperseded
v25 patches9 repliesSuperseded
v15 patches3 repliesSuperseded

Changes in v6 from the cover letter

- No code changes, fix diff.context setting for formatting patches. Version 4 was adding context at the bottom of the file with 'git am'.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5base: soc: Add serial_number attribute to socDocumentation/ABI/testing/sysfs-devices-soc drivers/base/soc.c include/linux/sys_soc.h+15 -01 reply
2/5base: soc: Export soc_device_register/unregister APIsdrivers/base/soc.c+2 -00 replies
3/5soc: qcom: Add socinfo driverdrivers/soc/qcom/Kconfig drivers/soc/qcom/Makefile drivers/soc/qcom/smem.c +1 more+212 -01 reply
4/5soc: qcom: socinfo: Expose custom attributesdrivers/soc/qcom/socinfo.c+190 -01 reply
5/5soc: qcom: socinfo: Expose image informationdrivers/soc/qcom/socinfo.c+84 -01 reply

Reviews trailers per patch

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

PatchGreg Kroah-HartmanStephen BoydBjorn AnderssonVinod Koul
SeriesT-b
1/5R-b R-b R-b
2/5R-b R-b R-b
3/5R-b
4/5R-b
5/5R-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 v6 thread

Cover letter [PATCH v6 0/5] soc: qcom: Add SoC info driver

This patchset adds SoC info driver which can provide information such as Chip ID, Chip family and serial number about Qualcomm SoCs to user space via sysfs. Furthermore, it allows userspace to get information about custom attributes and various image version information via debugfs.

The patchset cleanly applies on top of v5.2-rc7.

Changes since v1:
- Align ifdefs to left, remove unnecessary debugfs dir creation check and fix function signatures in patch 3
- Fix comment for teh case when serial number is not available in patch 1

Changes since v2:
- Reorder patches [patch five -> patch two]

Changes since v3:
- Add reviewed-bys from Greg
- Fix build warning when debugfs is disabled
- Remove extra checks for dir creations in patch 5

Changes since v4:
- Added Reviewed-bys in multiple patches
- Bunch of nitpick fixes in patch 3
- Major refactoring for using core debugfs functions and eliminating duplicate code in patch 4 and 5 [detailed info can be found under --- in each patch]

Changes since v5:
- No code changes, fix diff.context setting for formatting patches. Version 4 was adding context at the bottom of the file with 'git am'.

Vaishali Thakkar (5):
base: soc: Add serial_number attribute to soc
base: soc: Export soc_device_register/unregister APIs
soc: qcom: Add socinfo driver
soc: qcom: socinfo: Expose custom attributes
soc: qcom: socinfo: Expose image information

 Documentation/ABI/testing/sysfs-devices-soc |   7 +
 drivers/base/soc.c                          |   9 +
 drivers/soc/qcom/Kconfig                    |   8 +
 drivers/soc/qcom/Makefile                   |   1 +
 drivers/soc/qcom/smem.c                     |   9 +
 drivers/soc/qcom/socinfo.c                  | 468 ++++++++++++++++++++
 include/linux/sys_soc.h                     |   1 +
 7 files changed, 503 insertions(+)
 create mode 100644 drivers/soc/qcom/socinfo.c
Signature · 1 line
2.17.1