base: soc: Add serial_number attribute to soc
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 23 Jul 2019 22:35:11 +0000 (04:05 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 5 Aug 2019 21:56:30 +0000 (14:56 -0700)
commit9aebf4de220344e2f03ae6386272bf98f80fd295
treead37ed085240cbfe96935ba1999c38dd804da85b
parentaf311ff9a69189a03548efd5a47d4bb44644fd45
base: soc: Add serial_number attribute to soc

Add new attribute named "serial_number" as a standard interface for
user space to acquire the serial number of the device.

For ST-Ericsson SoCs this is exposed by the cryptically named "soc_id"
attribute, but this provides a human readable standardized name for this
property.

Tested-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vaishali Thakkar <vaishali.thakkar@linaro.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Documentation/ABI/testing/sysfs-devices-soc
drivers/base/soc.c
include/linux/sys_soc.h