Re: Serio keyboard issues 2.5.70

Russell King (rmk@arm.linux.org.uk)
Wed, 4 Jun 2003 23:23:18 +0100


On Wed, Jun 04, 2003 at 08:23:21PM +0100, John Appleby wrote:
> And that printk is coming up fine. serio_register_device seems to add
> 0x021c2af8 to its tail, but then never finds my entry in
> list_for_each_entry and thus never calls dev->connect(). I've added some
> debugging to serio_register_device thus:
>
> void serio_register_device(struct serio_dev *dev)
> {
> struct serio *serio;
> list_add_tail(&dev->node, &serio_dev_list);
> printk("serio: add_tail %08x\n",&dev->node);
> list_for_each_entry(serio, &serio_list, node) {
> printk("serio: register_device %08x\n",serio->dev);
> if (!serio->dev && dev->connect) {
> printk("serio: connecting...\n");
> dev->connect(serio, dev);
> }
> }
> }
>
> and I get nothing past "add_tail". I'd expect it to recognize my dev and
> attempt to connect to it.

Do you drop out the bottom of the function? If you have no hardware ports
registered, I'd expect this to be the case.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/