Skip to contentSkip to conversation

tpm: Remove a deprecated comments about implicit sysfs locking

PATCH Superseded Jarkko Sakkinen 1 participant 1 message Jul 8, 2019

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm: Remove a deprecated comments about implicit sysfs locking

Remove all comments about implicit locking tpm-sysfs.c as the file was updated in Linux v5.1 to use explicit locking.

---
 drivers/char/tpm/tpm-chip.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/char/tpm/tpm-chip.c +2 -5
index bf868260f435..9311f88afbb4 100644
@@ -287,12 +287,9 @@ static void tpm_devs_release(struct device *dev)
  * @dev: device to which the chip is associated.
  *
  * Issues a TPM2_Shutdown command prior to loss of power, as required by the
- * TPM 2.0 spec.
- * Then, calls bus- and device- specific shutdown code.
+ * TPM 2.0 spec. Then, calls bus- and device- specific shutdown code.
  *
- * XXX: This codepath relies on the fact that sysfs is not enabled for
- * TPM2: sysfs uses an implicit lock on chip->ops, so this could race if TPM2
- * has sysfs support enabled before TPM sysfs's implicit locking is fixed.
+ * Return: always 0 (i.e. success)
  */
 static int tpm_class_shutdown(struct device *dev)
 {
Signature · 1 line
2.20.1