29 May 2011 21:08
[PATCH 1/2] serial: 8250_pci: add .probe member to struct pci_serial_quirk
Frédéric Brière <fbriere <at> fbriere.net>
2011-05-29 19:08:03 GMT
2011-05-29 19:08:03 GMT
This function, if present, is called early on by the 8250_pci probe; it
can be used to reject devices meant for parport_serial. (The .init
function cannot be used for this purpose, as it is also called by
parport_serial.)
Signed-off-by: Frédéric Brière <fbriere <at> fbriere.net>
Cc: Greg Kroah-Hartman <gregkh <at> suse.de>
Cc: Alan Cox <alan <at> linux.intel.com>
Cc: linux-serial <at> vger.kernel.org
Cc: linux-parport <at> lists.infradead.org
---
drivers/tty/serial/8250_pci.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/tty/serial/8250_pci.c b/drivers/tty/serial/8250_pci.c
index 4b4968a..e6fb67b 100644
--- a/drivers/tty/serial/8250_pci.c
+++ b/drivers/tty/serial/8250_pci.c
<at> <at> -39,6 +39,7 <at> <at> struct pci_serial_quirk {
u32 device;
u32 subvendor;
u32 subdevice;
+ int (*probe)(struct pci_dev *dev);
int (*init)(struct pci_dev *dev);
int (*setup)(struct serial_private *,
const struct pciserial_board *,
<at> <at> -2581,11 +2582,19 <at> <at> EXPORT_SYMBOL_GPL(pciserial_resume_ports);
static int __devinit
pciserial_init_one(struct pci_dev *dev, const struct pci_device_id *ent)
{
(Continue reading)
RSS Feed