Skip to contentSkip to conversation

missing exports

PATCH Applied Geert Uytterhoeven 5 participants 8 messages Jul 10, 2004 – Jul 12, 2004 18 messages not in the archive Kbuild

lore
Share & tools
lore
#18 lore raw
In reply to a message not in the archive
Quoted 18 lines · Kars de Jong
Quoted 6 lines · Kars de Jong
Quoted 4 lines · Geert Uytterhoeven
Quoted 1 line · Kars de Jong

the input device layer HIL keyboard driver working, etc... :-(

Aren't some PARISC people working on that as well?

Quoted 7 lines

Hmm, yes, apparently there is a PARISC patch for 2.6 which has a port of the HP300 HIL driver to the input device layer.

They also have a far more extensive HIL driver which handles the mouse as well, but I'm not sure if the HIL in the later PARISC models is the same as the HIL in the HP300 series on a device driver level. I'd have to study the driver a little better.

I have ported the PARISC HIL stuff to the HP300. Basically only the SDC driver needed to be changed a bit, all the rest was generic already.

Quoted 6 lines

My kernel crashes if loadkeys is used (which I don't understand yet) but otherwise it seems to work a bit. The keyboard and mouse are properly detected, but when I read /dev/input/mice I don't get any events.

What should I do with these files? Just add them to our repository, and worry about merging with the PARISC people later?

What about posting the patches to the Linux/m68k and Linux/PA-RISC lists?

Quoted 2 lines

Oh, all of these are already present in the m68k-2_4 branch, although some of them have moved. How does that work in CVS?

CVS doesn't do move. You have to delete the file in the old place, and add it at the new place.

Quoted 12 lines

The following files are new for the HIL stuff:

drivers/input/keyboard/hil_kbd.c
drivers/input/keyboard/hilkbd.c
drivers/input/misc/hp_sdc_rtc.c
drivers/input/mouse/hil_ptr.c
drivers/input/serio/hil_mlc.c
drivers/input/serio/hp_sdc.c
drivers/input/serio/hp_sdc_mlc.c
include/linux/hil.h
include/linux/hil_mlc.h
include/linux/hp_sdc.h

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#19 lore raw
Quoted 3 lines · Geert Uytterhoeven
Quoted 1 line

worry about merging with the PARISC people later?

What about posting the patches to the Linux/m68k and Linux/PA-RISC lists?

That'd be great. More shared code!
It's also good incentive for us to get this stuff merged upstream. Helge, you said you'd take care of this... what's the current status?

Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
#20 lore raw
Quoted 8 lines · Matthew Wilcox
Quoted 3 lines · Geert Uytterhoeven
Quoted 1 line

worry about merging with the PARISC people later?

What about posting the patches to the Linux/m68k and Linux/PA-RISC lists?

That'd be great. More shared code!
It's also good incentive for us to get this stuff merged upstream. Helge, you said you'd take care of this... what's the current status?

Last time I tried the HIL stuff for 2.6 was still in bad shape.
It worked unreliable and all the locking due to the timing issues still increases the generic load of the machine.

Our code in kernel 2.4 has similiar problems, but this I think we can live with.

Anyway, I would be happy to see any patches and merge them upstream.

Helge
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#21 lore raw
Quoted 4 lines · Helge Deller
Quoted 3 lines · Matthew Wilcox
Quoted 2 lines · Geert Uytterhoeven
Quoted 1 line

worry about merging with the PARISC people later?

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

What about posting the patches to the Linux/m68k and Linux/PA-RISC lists?

That'd be great. More shared code!
It's also good incentive for us to get this stuff merged upstream. Helge, you said you'd take care of this... what's the current status?

Last time I tried the HIL stuff for 2.6 was still in bad shape.
It worked unreliable and all the locking due to the timing issues still increases the generic load of the machine.

Yes, I noticed that...

It seems to be worse than 2.4 though. On my HP9000/425t the keyboard sometimes locks up for a while and then starts reacting again. The mouse gets detected but doesn't seem to generate any events on /dev/input/mice.

Quoted 3 lines

Our code in kernel 2.4 has similiar problems, but this I think we can live with.

Anyway, I would be happy to see any patches and merge them upstream.

OK, here they are. Nothing to fix the reliability issues though, I'm affraid.

I needed remove the __exit marker from hp_sdc_exit() because the linker didn't like it being called from hp_sdc_register():

drivers/built-in.o: In function `hp_sdc_register':
drivers/built-in.o(.init.text+0x396e): undefined reference to `local symbols in discarded section .exit.text'

I don't really know what that means, seems like it doesn't like calling an __exit function from an __init function.

ChangeLog:

drivers/input/keyboard/hil_kbd.c:
Check for KEY_RESERVED _after_ translation.

include/linux/hp_sdc.h
drivers/input/serio/hp_sdc.c

	Add support for HP9000/[34]00 series.

Kind regards,

Kars.

usr/src/linux-2.6-m68k-hp/drivers/input/keyboard/hil_kbd.c renamed from tmp/parisc/drivers/input/keyboard/hil_kbd.c +4 -4
diff -ur /tmp/parisc/drivers/input/keyboard/hil_kbd.c /usr/src/linux-2.6-m68k-hp/drivers/input/keyboard/hil_kbd.c
@@ -156,9 +156,9 @@
 			key = kbd->data[cnt++];
 			up = key & HIL_KBD_SET1_UPBIT;
 			key &= (~HIL_KBD_SET1_UPBIT & 0xff);
-			key = key >> HIL_KBD_SET1_SHIFT;
+			key = hil_kbd_set1[key >> HIL_KBD_SET1_SHIFT];
 			if (key != KEY_RESERVED)
-				input_report_key(dev, hil_kbd_set1[key], !up);
+				input_report_key(dev, key, !up);
 		}
 		break;
 	case HIL_POL_CHARTYPE_SET2:
@@ -180,9 +180,9 @@
 			key = kbd->data[cnt++];
 			up = key & HIL_KBD_SET3_UPBIT;
 			key &= (~HIL_KBD_SET1_UPBIT & 0xff);
-			key = key >> HIL_KBD_SET3_SHIFT;
+			key = hil_kbd_set3[key >> HIL_KBD_SET3_SHIFT];
 			if (key != KEY_RESERVED)
-				input_report_key(dev, hil_kbd_set3[key], !up);
+				input_report_key(dev, key, !up);
 		}
 		break;
 	}
usr/src/linux-2.6-m68k-hp/drivers/input/serio/hp_sdc.c renamed from tmp/parisc/drivers/input/serio/hp_sdc.c +93 -25

249 lines not on this page · raw message

usr/src/linux-2.6-m68k-hp/include/linux/hp_sdc.h renamed from tmp/parisc/include/linux/hp_sdc.h +5 -0
diff -ur /tmp/parisc/include/linux/hp_sdc.h /usr/src/linux-2.6-m68k-hp/include/linux/hp_sdc.h
@@ -42,7 +42,9 @@
 #include <linux/types.h>
 #include <linux/time.h>
 #include <linux/timer.h>
+#if defined(__hppa__)
 #include <asm/hardware.h>
+#endif
 
 
 /* No 4X status reads take longer than this (in usec).
@@ -284,6 +286,9 @@
 #ifdef __hppa__
 	struct parisc_device	*dev;
 	int		dev_err;	/* carries status from registration */
+#elif defined(__mc68000__)
+	void		*dev;
+	int		dev_err;	/* carries status from registration */	
 #else
 #error No support for device registration on this arch yet.
 #endif
#22 lore raw
Quoted 5 lines · Kars de Jong
Quoted 1 line · Helge Deller

On Saturday 10 July 2004 15:05, Matthew Wilcox wrote:

OK, here they are. Nothing to fix the reliability issues though, I'm affraid.

Quoted 8 lines

I needed remove the __exit marker from hp_sdc_exit() because the linker didn't like it being called from hp_sdc_register():

drivers/built-in.o: In function `hp_sdc_register':
drivers/built-in.o(.init.text+0x396e): undefined reference to `local symbols in discarded section .exit.text'

I don't really know what that means, seems like it doesn't like calling an __exit function from an __init function.

Indeed, __exit functions may be discarded.

usr/src/linux-2.6-m68k-hp/include/linux/hp_sdc.h line 291

Quoted 9 lines
usr/src/linux-2.6-m68k-hp/include/linux/hp_sdc.h renamed from tmp/parisc/include/linux/hp_sdc.h +3 -0
@@ -284,6 +286,9 @@
 #ifdef __hppa__
 	struct parisc_device	*dev;
 	int		dev_err;	/* carries status from registration */
+#elif defined(__mc68000__)
+	void		*dev;
+	int		dev_err;	/* carries status from registration */

You can merge dev_err as well.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#23 lore raw
In reply to Kars de Jong

On Sat, Jul 10, 2004 at 06:36:30PM +0200, Kars de Jong wrote:
...

usr/src/linux-2.6-m68k-hp/include/linux/hp_sdc.h line 290

Quoted 6 lines
usr/src/linux-2.6-m68k-hp/include/linux/hp_sdc.h renamed from tmp/parisc/include/linux/hp_sdc.h +2 -0
@@ -284,6 +286,9 @@
 #ifdef __hppa__
 	struct parisc_device	*dev;
 	int		dev_err;	/* carries status from registration */
+#elif defined(__mc68000__)
+	void		*dev;

Can *dev be unified eventually to "struct device"?

"void *" isn't my favorite construct.

grant

Applied
#24 lore raw
In reply to Kars de Jong
Quoted 4 lines · Kars de Jong

It seems to be worse than 2.4 though. On my HP9000/425t the keyboard sometimes locks up for a while and then starts reacting again. The mouse gets detected but doesn't seem to generate any events on /dev/input/mice.

Yes. Same problem here on HPPA/2.6 as well.

Quoted 4 lines
Quoted 1 line

Anyway, I would be happy to see any patches and merge them upstream.

OK, here they are. Nothing to fix the reliability issues though, I'm affraid.

I applied your changes to the PARISC CVS tree, but as long as the mouse isn't working I think it's a bad idea to merge it upstream.

Helge
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#25 lore raw
Quoted 1 line · Helge Deller

I applied your changes to the PARISC CVS tree, but as long as the mouse isn't working I think it's a bad idea to merge it upstream.

I'm not sure that's true. I think it's fine to merge it upstream and fix it later. Maybe someone else will notice the problem and fix it for us ;-)

Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain