From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Frans Pop <elendil@planet.nl>
Cc: linux-kernel@vger.kernel.org, Marcel Selhorst <tpm@selhorst.net>,
Kay Sievers <kay.sievers@vrfy.org>,
Thomas Renninger <trenn@suse.de>, Adam Belay <ambx1@neo.rr.com>,
Andrew Morton <akpm@linux-foundation.org>,
"Rafael J. Wysocki" <rjw@sisk.pl>
Subject: Re: char/tpm: tpm_infineon no longer loaded for HP 2510p laptop
Date: Wed, 20 Aug 2008 09:56:52 -0600 [thread overview]
Message-ID: <200808200956.52883.bjorn.helgaas@hp.com> (raw)
In-Reply-To: <200808181540.25286.elendil@planet.nl>
On Monday 18 August 2008 07:40:24 am Frans Pop wrote:
> While comparing the loaded modules for 2.6.26 and 2.6.27-rc3 for my HP
> 2510p, I noticed that the tpm_infineon module and related modules no
> longer get loaded automatically.
>
> The difference seems to be that 2.6.26 listed:
> /lib/modules/2.6.26.2/modules.alias:alias pnp:dIFX0102* tpm_infineon
> /lib/modules/2.6.26.2/modules.alias:alias pnp:dIFX0101* tpm_infineon
>
> while 2.6.27 has:
> /lib/modules/2.6.27-rc3/modules.alias:alias acpi*:IFX0101:* tpm_infineon
> /lib/modules/2.6.27-rc3/modules.alias:alias pnp:dIFX0101* tpm_infineon
>
> My system has:
> $ grep IFX /sys/bus/pnp/devices/*/id
> /sys/bus/pnp/devices/00:02/id:IFX0102
drivers/char/tpm/tpm_infineon.c hasn't changed since v2.6.26. I think
the problem is more likely related to commit 22454cb99fc39f2629a:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=22454cb99fc39f2629ad06a7eccb3df312f8830e
I don't know enough about modaliases to understand the point of this
patch, but I am suspicious of this part of it:
- do_table(symval, sym->st_size,
- sizeof(struct pnp_device_id), "pnp",
- do_pnp_entry, mod);
+ do_pnp_device_entry(symval, sym->st_size, mod);
That suggests to me that where we used to generate an alias for every
PNP ID in the table:
static const struct pnp_device_id tpm_pnp_tbl[] = {
{"IFX0101", 0},
{"IFX0102", 0},
{"", 0}
};
possibly the new code only does it for the first entry (IFX0101).
Apart from problem Frans points out, I'd like to understand the reason
for generating the "acpi*" aliases for PNP drivers. I'd like to move
away from ACPI being visible to userland, and this file2alias.c change
makes it *more* visible.
Bjorn
next prev parent reply other threads:[~2008-08-20 15:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-18 13:40 char/tpm: tpm_infineon no longer loaded for HP 2510p laptop Frans Pop
2008-08-20 15:56 ` Bjorn Helgaas [this message]
2008-08-21 12:40 ` Rafael J. Wysocki
2008-08-21 13:28 ` Kay Sievers
2008-08-21 15:14 ` Bjorn Helgaas
2008-08-21 15:38 ` Kay Sievers
2008-08-21 16:31 ` Bjorn Helgaas
2008-08-21 20:30 ` Frans Pop
-- strict thread matches above, loose matches on Subject: below --
2008-08-21 21:18 Kay Sievers
2008-08-21 21:58 ` Bjorn Helgaas
2008-08-22 8:40 ` Kay Sievers
2008-08-22 12:06 ` Bjorn Helgaas
2008-08-22 12:43 ` Kay Sievers
2008-10-03 22:01 ` Bjorn Helgaas
2008-10-04 12:09 ` Kay Sievers
2008-10-04 15:31 ` Bjorn Helgaas
2008-10-04 16:27 ` Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200808200956.52883.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=akpm@linux-foundation.org \
--cc=ambx1@neo.rr.com \
--cc=elendil@planet.nl \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=tpm@selhorst.net \
--cc=trenn@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox