broken tpm driver that register LPC device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux