On Tue, Jul 26, 2016 at 02:17:11PM -0600, Jason Gunthorpe wrote: > On Tue, Jul 26, 2016 at 11:44:43PM +0530, Nayna wrote: > > I got these questions while testing some TPM2.0 stuff using the kernel > > code from repo having this patch and am using Nuvoton TPM. > > > > #1. It seems that support is added only for following device-ids. > > {.compatible = "nuvoton,npct501"}, > > {.compatible = "winbond,wpct301"}, > > {.compatible = "nuvoton,npct601", .data = OF_IS_TPM2}, > > > > So, was wondering about why device id nuvoton,npct650 wasn't added for > > the support ? > > Yes, that was the device ID list for Nuvoton. > > It is convention in device tree to include older device IDs if the > device is compatible. > > So you might do > > compatible = "nuvoton,npct650", "nuvoton,npct601" > > Andrew, is 601 even the right name? > > > Was it expected to work with some wild-card type device-id as specified > > in the first line of description comment of file i.e. npct6XX. ? > > No. > > > So, why is there hard-coded checking and not using tpm2_probe() method > > which is itself based on direct TPM hardware response for setting the > > TPM2 flag. ? Is there something I am missing in the design which > > mandates to have .data set as OF_IS_TPM2. > > Generally speaking probing is somewhat discouraged, currently we only > probe for PC platform tis (and even that might be a mistake), all > other drivers are designed to be explicit.
I did probing that way originally because the dTPM I had in hand in 2014 did not give expected information from TIS registers in the force path. I'm sorry but can't recall anymore more exact description what was the problem but the dTPM was not a production version. > Jason /Jarkko ------------------------------------------------------------------------------ _______________________________________________ tpmdd-devel mailing list tpmdd-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tpmdd-devel