Skip to contentSkip to conversation

parport on Sun Blade 2500 Red ?

DISCUSSION Mikael Pettersson 2 participants 4 messages May 3, 2010 – Aug 9, 2010 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

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 144x56
f008fbfc: ttyS0 at MMIO 0x7fe010003f8 (irq = 23) is a 16550A
Console: ttyS0 (SU)
console [ttyS0] enabled
f0091638: 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

maintainer
#1 lore raw

From: 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
index c333b8d..d21ad50 100644
@@ -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
author Tested-by
#2 lore raw
In reply to Mikael Pettersson
Quoted 12 lines · David Miller

From: 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:

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.

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
index c333b8d..d21ad50 100644
@@ -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