]> git.karo-electronics.de Git - linux-beck.git/commit
parport: parport_pc: Implement architecture and device check to cut off false-positives
authorMatwey V. Kornilov <matwey@sai.msu.ru>
Wed, 27 Aug 2014 08:07:44 +0000 (12:07 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:14:28 +0000 (23:14 -0700)
commit0ae39cc98192252f756f8943be85e9f4dbd8436e
treee5bb7427279fb82886d7a0e7a4da43a7b9dd7bf9
parent17891c8a9ea17a11b437c7184f7f04e0ab7be811
parport: parport_pc: Implement architecture and device check to cut off false-positives

We definitely know that only x86 (32-bit) architecture is affected by the issue, so implement a stub instead of the actual check for other architectures.

We also know that motherboard LPT chipset is affected, so the port is either come from
  parport_pc_init (when `io' module param is used) or
  parport_pc_find_isa_ports (when default LPT ports are probbed: 0x378, 0x278, 0x3bc).
In both cases the port considered as 'legacy' and `dev' member of struct parport is NULL. See also comments for `struct parport' in parport.h

Signed-off-by: Matwey V. Kornilov <matwey@sai.msu.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/parport_pc.c