Re: [tpmdd-devel] [PATCH] tpm_crb: fix: associate to the correct device

From: Jarkko Sakkinen
Date: Fri Mar 04 2016 - 18:32:48 EST


On Thu, Feb 18, 2016 at 11:03:31AM -0700, Jason Gunthorpe wrote:
> > + INIT_LIST_HEAD(&resources);
> > + rc = acpi_dev_get_resources(device, &resources, crb_check_resource,
> > + priv);
> > + if (rc < 0)
> > + return rc;
> > + acpi_dev_free_resource_list(&resources);
>
> I wonder if the acpi_dev_free_resource_list is what kill's the
> resource name? Maybe that needs to be delayed until after the
> ioremap, which is best done with this back in crb_map_io ??
>
> Thanks for looking at this stuff,

I had almost forgotten this comment. I'll try this out as soon as
possible. Might well be the reason.

> Jason

/Jarkko