On Tue, Aug 30, 2016 at 12:50:19AM -0400, Nayna Jain wrote:
>       if (chip->dev.of_node)
>               np = chip->dev.of_node;
>       if (!np) {
> -             dev_dbg(&chip->dev, "%s: ERROR - IBMVTPM not supported\n",
> +             dev_dbg(&chip->dev, "%s: ERROR - TPM not supported\n",
>                       __func__);

ERm, this is a mistake in the earlier patch that adds OF and ACPI
together.

Do not print anything if OF is present but no event log is
defined. Ditto for ACPI.

Do not print anything if there is no OF node either.

> +     if (!strcasecmp(compat, "IBM,vtpm"))

No, this is the wrong way to work with compatible lists. I'm pretty
sure there is an OF helper to do this.

> +             log_size = *sizep;

???

All DT values should be big endian. Please include a comment
explaining why this is would not be the case.

Are you certain this isn't just a pre-existing bug - the code assumed
host endian because it was always running on big endian PPC?

Jason

------------------------------------------------------------------------------
_______________________________________________
tpmdd-devel mailing list
tpmdd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tpmdd-devel

Reply via email to