mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] soc: qcom: socinfo: Add fields in sysfs custom attributes
@ 2023-01-11  8:21 Naman Jain
  2023-01-11  8:21 ` [PATCH 1/2] soc: qcom: socinfo: Change socinfo variable name and scope Naman Jain
  2023-01-11  8:21 ` [PATCH 2/2] soc: qcom: socinfo: Add sysfs attributes for fields in v2-v6 Naman Jain
  0 siblings, 2 replies; 11+ messages in thread
From: Naman Jain @ 2023-01-11  8:21 UTC (permalink / raw)
  To: Bjorn Andersson, Andy Gross, Konrad Dybcio
  Cc: Naman Jain, linux-arm-msm, linux-kernel, quic_pkondeti

This series adds support to have SoC info fields available in sysfs
to enable the use of these nodes in userland scripts and test scripts.
This is to provide the interface to these scripts to find the details of
parts present in the SoC and decide to execute a set of shell commands,
that are supported/required for these parts. The decision to extend sysfs
interface is taken as debugfs is not mounted by default and the use cases
for this information are not essentially for debug.

The patches add the following changes:
1. Restructure the code to make the scope of socinfo variable, from
   function to file. Also, make the socinfo variable name more descriptive.
2. Extend the sysfs custom attributes to incorporate fields introduced in
   socinfo format version 2 to 6. Add name mappings for hw_platform field
   to make the sysfs information more descriptive.

Support for versions 7 and above will be added in future patchsets.

Also, patch 2 depends on patch 1 in the series.

Naman Jain (2):
  soc: qcom: socinfo: Change socinfo variable name and scope
  soc: qcom: socinfo: Add sysfs attributes for fields in v2-v6

 drivers/soc/qcom/socinfo.c | 261 +++++++++++++++++++++++++++++++------
 1 file changed, 223 insertions(+), 38 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-01-20 10:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11  8:21 [PATCH 0/2] soc: qcom: socinfo: Add fields in sysfs custom attributes Naman Jain
2023-01-11  8:21 ` [PATCH 1/2] soc: qcom: socinfo: Change socinfo variable name and scope Naman Jain
2023-01-11 21:37   ` Trilok Soni
2023-01-19  9:33     ` Naman Jain
2023-01-11  8:21 ` [PATCH 2/2] soc: qcom: socinfo: Add sysfs attributes for fields in v2-v6 Naman Jain
2023-01-11 23:19   ` Dmitry Baryshkov
2023-01-11 23:58     ` Trilok Soni
2023-01-19  9:35       ` Naman Jain
2023-01-19  9:39     ` Naman Jain
2023-01-19 10:59       ` Dmitry Baryshkov
2023-01-20 10:15         ` Naman Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®