All of lore.kernel.org
 help / color / mirror / Atom feed
From: matthieu castet <castet.matthieu@free.fr>
To: Linux Kernel list <linux-kernel@vger.kernel.org>
Cc: leendert@watson.ibm.com, safford@watson.ibm.com,
	sailer@watson.ibm.com, kjhall@us.ibm.com,
	tpmdd_devel@lists.sourceforge.net
Subject: broken tpm driver that register LPC device
Date: Sat, 06 Aug 2005 22:52:58 +0200	[thread overview]
Message-ID: <42F5232A.7000204@free.fr> (raw)

Hi,

I have seen that new tpm driver register lpc device with 
pci_register_driver, and does pci_disable_device on it.

This is _very_ broken as other driver share the same pci device.
For example drivers/char/watchdog/i8xx_tco.c. This one is right, as it 
only scan the lpc device via pci_find_device and don't register it. It 
also don't try to enable/disable it...

Finaly, after a quick look, they don't even need to acess the lpc as 
they don't read/write any value on it, they just do some IO on some ports.

Of course they don't care to request these IO ports with request_region...

I really wonder how such messy driver go into mainline kernel.


So for the tpm on the lpc, use pnp layer if possible or don't register 
it, and do like i8xx_tco.c. And before doing any IO use request_region...


regards,

Matthieu

                 reply	other threads:[~2005-08-06 20:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=42F5232A.7000204@free.fr \
    --to=castet.matthieu@free.fr \
    --cc=kjhall@us.ibm.com \
    --cc=leendert@watson.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=safford@watson.ibm.com \
    --cc=sailer@watson.ibm.com \
    --cc=tpmdd_devel@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.