# \[PATCH v7 0/3\] Enable PPI sysfs interface for TPM 2.0

- From: Jarkko Sakkinen \<hidden\>
- Date: 2015-06-22 17:25:43 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2015/06/4520793
- Thread: https://ratatoskr.run/linux-api/2015/06/4520793/t.md

```text
v7:
* Fixed compile error when CONFIG_SYSFS is not enabled.

v6:
* Updated documentation.

v5:
* Removed dangling export of kernfs_remove_by_name_ns() from the sysfs
  patch.

v4:
* Use sysfs_remove_link()

v3:
* Fixed to_tpm_chip() macro.
* Split into two patches.
* Renamed sysfs_link_group_to_kobj to sysfs_link_entry_to_kobj
* Only create the "backwards compatibility" symlink for TPM 1.x devices.

Jarkko Sakkinen (3):
  sysfs: added sysfs_link_entry_to_kobj()
  tpm: move the PPI attributes to character device directory.
  tpm: update PPI documentation to address the location change.

 Documentation/ABI/testing/sysfs-driver-ppi | 19 +++++++++-----
 drivers/char/tpm/tpm-chip.c                | 24 +++++++++++------
 drivers/char/tpm/tpm.h                     | 17 +++++-------
 drivers/char/tpm/tpm_ppi.c                 | 34 ++++++++----------------
 fs/sysfs/group.c                           | 42 ++++++++++++++++++++++++++++++
 include/linux/sysfs.h                      |  9 +++++++
 6 files changed, 96 insertions(+), 49 deletions(-)

-- 
2.1.4
```
