Re: [PATCH v6 4/4] x86/sev: register tpm-svsm platform device
From: Borislav Petkov
Date: Wed Apr 09 2025 - 07:32:28 EST
On Wed, Apr 09, 2025 at 12:43:01PM +0200, Stefano Garzarella wrote:
> Sorry, maybe I missed something.
>
> tpm_svsm.c registers the driver with module_platform_driver_probe().
>
> Someone (the platform I guess) has to register the device by calling
> platform_device_register(), as we already do for example for
> sev_guest.
Maybe that platform device thing is the wrong approach. Why does the core code
need to register some dummy platform device in the first place? Why can't
drivers/char/tpm/tpm_svsm.c probe and init without it?
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette