parport on Sun Blade 2500 Red ?
According to Sun's documentation, a Sun Blade 2500 Red includes a PC-style parallel port.
If I build a kernel (any recent 2.6 kernel) with plain parport support (PARPORT_PC=y), there are no kernel messages of any kind related to parport, indicating it didn't find one. If I then add PARPORT_PC_SUPERIO=y the kernel throws a low-level exception and reboots instantly:
...
e3d: Found device at 0003:00:02.0
Console: switching to colour frame buffer device 144x56f008fbfc: ttyS0 at MMIO 0x7fe010003f8 (irq = 23) is a 16550A
Console: ttyS0 (SU)
console [ttyS0] enabledf0091638: ttyS1 at MMIO 0x7fe010002e8 (irq = 23) is a 16550A
Fatal Error Reset
CPU 0000.0000.0000.0000 AFSR 0080.0000.0000.0000 AFAR 0000.0008.c004.0000
No I don't intend to use the parport :-) I'm just curious.
/Mikael
David Miller
maintainerFrom: Mikael Pettersson <[email protected]>
Date: Mon, 3 May 2010 16:12:00 +0200
Quoted 6 lines
According to Sun's documentation, a Sun Blade 2500 Red includes a PC-style parallel port.
If I build a kernel (any recent 2.6 kernel) with plain parport support (PARPORT_PC=y), there are no kernel messages of any kind related to parport, indicating it didn't find one.
Just a missing device ID in the driver, give this patch a try:
--------------------
sparc64: Add missing ID to parport probing code.
SunBlade-2500 has 'parallel' device node with compatible property "pnpALI,1533,3" so add that to the ID table.
--- arch/sparc/include/asm/parport.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
arch/sparc/include/asm/parport.h +4 -0
@@ -228,6 +228,10 @@ static const struct of_device_id ecpp_match[] = { .name = "parallel", .compatible = "ns87317-ecpp", }, + { + .name = "parallel", + .compatible = "pnpALI,1533,3", + }, {}, };
Signature · 1 line
1.7.1.1
Mikael Pettersson
Tested-byQuoted 12 lines · David Miller
From: Mikael Pettersson <[email protected]>
Date: Mon, 3 May 2010 16:12:00 +0200Quoted 6 lines
According to Sun's documentation, a Sun Blade 2500 Red includes a PC-style parallel port.
If I build a kernel (any recent 2.6 kernel) with plain parport support (PARPORT_PC=y), there are no kernel messages of any kind related to parport, indicating it didn't find one.
Just a missing device ID in the driver, give this patch a try:
Quoted 8 lines
--------------------
sparc64: Add missing ID to parport probing code.SunBlade-2500 has 'parallel' device node with compatible property "pnpALI,1533,3" so add that to the ID table.
Reported-by Mikael Pettersson <[email protected]>Signed-off-by David S. Miller <[email protected]>
Thanks, seems to work. I now get:
parport0: PC-style at 0x7fe01000378 (0x7fe01000778), irq 24 [PCSPP,TRISTATE]
Quoted 22 lines
--- arch/sparc/include/asm/parport.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)arch/sparc/include/asm/parport.h +4
-0@@ -228,6 +228,10 @@ static const struct of_device_id ecpp_match[] = { .name = "parallel", .compatible = "ns87317-ecpp", }, + { + .name = "parallel", + .compatible = "pnpALI,1533,3", + }, {}, };Signature · 1 line
1.7.1.1
David Miller
maintainerFrom: Mikael Pettersson <[email protected]>
Date: Sun, 8 Aug 2010 21:33:43 +0200
Quoted 5 lines
Thanks, seems to work. I now get:
parport0: PC-style at
0x7fe01000378(0x7fe01000778), irq 24 [PCSPP,TRISTATE]Tested-by Mikael Pettersson <[email protected]>
Thanks a lot for testing.