Where is the proper place to ask about parports ?
///
I get:
# echo -n 1 > /dev/parport0
bash: echo: write error: Invalid argument
i.e. error 22 (EINVAL), as if there isn't any write routine
in the driver. I have tested two identical cards, same story.
Same thing with reading:
$ dd if=/dev/parport0 count=1 bs=1
dd: error reading '/dev/parport0': Invalid argument
0+0 records in
0+0 records out
0 bytes copied, 6.2359e-05 s, 0.0 kB/s
open() and close() works without errors.
How can I make it functional ?
///
I have two Delock 1x par, 2x ser pcie cards (only one installed).
The parport one show up (lspci -vn) as:
05:00.2 0701: 9710:9912 (prog-if 03 [IEEE1284])
Subsystem: a000:2000
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at ad00 [size=8]
I/O ports at ac00 [size=8]
Memory at fd8fb000 (32-bit, non-prefetchable) [size=4K]
Memory at fd8fa000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: parport_serial
Kernel modules: parport_serial
it matches:
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9912,
0xA000, 0x2000, 0, 0, netmos_99xx_1p }
i.e. lines 176-177 in drivers/parport/parport_serial.c
in the kernel source, last changed ages ago:
commit b9b24558f7d36c550b5cf0b550a8926f8c03cdbd
Author: Frédéric Brière <[email protected]>
Date: Sun May 29 15:08:04 2011 -0400
It shows up in the log as:
parport0: PC-style at 0xad00 (0xac00), irq 17, using FIFO
[PCSPP,TRISTATE,COMPAT,EPP,ECP]
or
parport0: PC-style at 0xad00 (0xac00), irq 17 [PCSPP,TRISTATE,EPP]
depending if I have CONFIG_PARPORT_PC_FIFO set or not in the kernel
I cannot set irq to none, it shows up as irq 17 even though I do:
# modprobe parport_pc irq=none
# modprobe parport_serial irq=none
The device file has sensible maj/min numbers:
# ls -l /dev/parport0
crw-rw---- 1 root users 99, 0 Jan 18 2016 /dev/parport0
Regards,
/Karl Hammar