summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>2016-01-08 01:36:24 +0100
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2016-02-10 03:11:37 +0100
commit00194826e6be333083ba9ddbd6e83fb423206f8a (patch)
treef0539c44583256010bf71730b8ef13f71e1d2c76 /net
parenttpm_tis: Use devm_ioremap_resource (diff)
downloadlinux-00194826e6be333083ba9ddbd6e83fb423206f8a.tar.xz
linux-00194826e6be333083ba9ddbd6e83fb423206f8a.zip
tpm_tis: Clean up the force=1 module parameter
The TPM core has long assumed that every device has a driver attached, however the force path was attaching the TPM core outside of a driver context. This isn't generally reliable as the user could detatch the driver using sysfs or something, but commit b8b2c7d845d5 ("base/platform: assert that dev_pm_domain callbacks are called unconditionally") forced the issue by leaving the driver pointer NULL if there is no probe. Rework the TPM setup to create a platform device with resources and then allow the driver core to naturally bind and probe it through the normal mechanisms. All this structure is needed anyhow to enable TPM for OF environments. Finally, since the entire flow is changing convert the init/exit to use the modern ifdef-less coding style when possible Reported-by: "Wilck, Martin" <martin.wilck@ts.fujitsu.com> Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Tested-by: Wilck, Martin <martin.wilck@ts.fujitsu.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Acked-by: Peter Huewe <peterhuewe@gmx.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions