Cannot setup IRQs for onboard and PCI parport simultaneously in parport_pc
Hi All,
I'd like to use parallel ports in my box, one is onboard integrated, one is a port of a Lava parallel port card. I have to use IRQ-s for a custom built instruments.
If I load parport_pc without options, onboard port comes up with IRQ, and Lava card without IRQs. To use IRQs on my Lava card, I have to specify IO and IRQ parameters (IO, and IRQ is guessed from lspci -v). However, if IO/IRQ options are specified no pnp/ACPI activation is done for the onboard port even if I specify the good IO and IRQ numbers, thus onboard port remains dead. See logs below.
- Is there a way to "force" Pnp activation of onboard port when IO/IRQ options are given to parport_pc module ?
- Or is there a way to autodetect Lava port with IRQ enabled?
I have a K9N2G-Neo (MS-7511) mainboard, Lava dual parallel PCI card, x86_64 Debian etch, kernel custom compiled 2.6.26.5.
Thanks
Gabor Kovacs
onboard port OK, Lava port without IRQ
modprobe parport_pc
# ====================
pnp: the driver 'parport_pc' has been registered
parport_pc 00:06: current resources: before pnp_assign_resources
parport_pc 00:06: irq 7 flags 0x401
parport_pc 00:06: io 0x378-0x37f flags 0x101
parport_pc 00:06: assigning independent options
parport_pc 00:06: assigning dependent option 1
parport_pc 00:06: io 0 already set to 0x378-0x37f flags 0x101
parport_pc 00:06: irq 0 already set to 7 flags 0x401
parport_pc 00:06: current resources: after pnp_assign_resources
parport_pc 00:06: irq 7 flags 0x401
parport_pc 00:06: io 0x378-0x37f flags 0x101
parport_pc 00:06: current resources: pnp_start_dev
parport_pc 00:06: irq 7 flags 0x401
parport_pc 00:06: io 0x378-0x37f flags 0x101
parport_pc 00:06: set resources
parport_pc 00:06: encode 3 resources
parport_pc 00:06: encode io 0x378-0x37f decode 0x1
parport_pc 00:06: encode irq 7 edge high exclusive (2-byte descriptor)
parport_pc 00:06: encode dma -1 type 0x0 transfer 0x0 master 0
parport_pc 00:06: activated
parport_pc 00:06: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP]
parport_pc 00:06: driver attached
PCI parallel port detected: 1407:8002, I/O at 0xcc00(0x0)
parport1: PC-style at 0xcc00 [PCSPP,TRISTATE,EPP]
PCI parallel port detected: 1407:8003, I/O at 0xc880(0x0)
parport2: PC-style at 0xc880 [PCSPP,TRISTATE,EPP]
===
onboard port remains dead if IO/IRQ parameters are given to parport_pc:
modprobe parport_pc io=0x378 irq=7
=============================
parport 0x378 (WARNING): CTR: wrote 0x0c, read 0xff
parport 0x378 (WARNING): DATA: wrote 0xaa, read 0xff
parport 0x378: You gave this address, but there is probably no parallel port there!
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
===
Lava port works with IRQ only if IO/IRQ specified:
modprobe parport_pc io=0xcc00,0xc880 irq=none,16
===================
parport0: PC-style at 0xcc00 [PCSPP,TRISTATE,EPP]
parport1: PC-style at 0xc880, irq 16 [PCSPP,TRISTATE,EPP]
|