android_kernel_asus_sm8350/drivers/char/tpm
Gang Wei 1631cfb7ce driver/char/tpm: fix regression causesd by ppi
This patch try to fix the S3 regression https://lkml.org/lkml/2012/10/5/433,
which includes below line:
[ 1554.684638] sysfs: cannot create duplicate filename '/devices/pnp0/00:0c/ppi'

The root cause is that ppi sysfs teardown code is MIA, so while S3 resume,
the ppi kobject will be created again upon existing one.

To make the tear down code simple, change the ppi subfolder creation from
using kobject_create_and_add to just using a named ppi attribute_group. Then
ppi sysfs teardown could be done with a simple sysfs_remove_group call.

Adjusted the name & return type for ppi sysfs init function.

Reported-by: Ben Guthro <ben@guthro.net>
Signed-off-by: Gang Wei <gang.wei@intel.com>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
2012-10-10 09:50:56 -05:00
..
Kconfig drivers/char/tpm: Add new device driver to support IBM vTPM 2012-08-22 16:21:45 -05:00
Makefile driver: add PPI support in tpm driver 2012-08-22 16:23:42 -05:00
tpm_acpi.c tpm: fix tpm_acpi sparse warning on different address spaces 2012-09-12 13:18:31 +10:00
tpm_atmel.c tpm_atmel: Use struct dev_pm_ops for power management 2012-07-10 21:37:02 +02:00
tpm_atmel.h tpmdd maintainers 2007-08-22 19:52:44 -07:00
tpm_eventlog.c tpm: modularize event log collection 2012-08-22 11:11:25 -05:00
tpm_eventlog.h drivers/char/tpm: Add securityfs support for event log 2012-08-22 16:22:47 -05:00
tpm_i2c_infineon.c char/tpm: Add new driver for Infineon I2C TIS TPM 2012-08-22 11:11:13 -05:00
tpm_ibmvtpm.c drivers/char/tpm: Add new device driver to support IBM vTPM 2012-08-22 16:21:45 -05:00
tpm_ibmvtpm.h drivers/char/tpm: Add new device driver to support IBM vTPM 2012-08-22 16:21:45 -05:00
tpm_infineon.c MAINTAINERS: TPM maintainers' contacts update 2012-06-12 18:53:22 -03:00
tpm_nsc.c tpm_nsc: Use struct dev_pm_ops for power management 2012-07-10 21:37:18 +02:00
tpm_of.c drivers/char/tpm: Add securityfs support for event log 2012-08-22 16:22:47 -05:00
tpm_ppi.c driver/char/tpm: fix regression causesd by ppi 2012-10-10 09:50:56 -05:00
tpm_tis.c tpm: compile out unused code in the PNP and PM cases 2012-08-22 11:12:03 -05:00
tpm.c driver/char/tpm: fix regression causesd by ppi 2012-10-10 09:50:56 -05:00
tpm.h driver/char/tpm: fix regression causesd by ppi 2012-10-10 09:50:56 -05:00