21cb9b18ed
Introduce sysfs entries to enable userspace clients the ability to read the serial number and the OEM PK Hash values obtained from BHI. OEMs need to read these device-specific hardware information values through userspace for factory testing purposes and cannot be exposed via degbufs as it may remain disabled for performance reasons. Also, update the documentation for ABI to include these entries. Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> [mani: used dev_groups to manage sysfs attributes] Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Link: https://lore.kernel.org/r/20200929175218.8178-16-manivannan.sadhasivam@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22 lines
974 B
Plaintext
22 lines
974 B
Plaintext
What: /sys/bus/mhi/devices/.../serialnumber
|
|
Date: Sept 2020
|
|
KernelVersion: 5.10
|
|
Contact: Bhaumik Bhatt <bbhatt@codeaurora.org>
|
|
Description: The file holds the serial number of the client device obtained
|
|
using a BHI (Boot Host Interface) register read after at least
|
|
one attempt to power up the device has been done. If read
|
|
without having the device power on at least once, the file will
|
|
read all 0's.
|
|
Users: Any userspace application or clients interested in device info.
|
|
|
|
What: /sys/bus/mhi/devices/.../oem_pk_hash
|
|
Date: Sept 2020
|
|
KernelVersion: 5.10
|
|
Contact: Bhaumik Bhatt <bbhatt@codeaurora.org>
|
|
Description: The file holds the OEM PK Hash value of the endpoint device
|
|
obtained using a BHI (Boot Host Interface) register read after
|
|
at least one attempt to power up the device has been done. If
|
|
read without having the device power on at least once, the file
|
|
will read all 0's.
|
|
Users: Any userspace application or clients interested in device info.
|