RE: kernel oops with extended serial stuff turned on...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Greg C,

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] 
> Sent: Wednesday, October 18, 2006 4:07 PM
> To: Kilau, Scott
> Cc: [email protected]
> Subject: RE: kernel oops with extended serial stuff turned on...
> 
> 
> Should that be made a permanent patch then? 

In my out-of-tree drivers, yes, it was the correct way to fix
the problem.

I am probably not the best one to ask about the
other serial drivers however...

The "DEVFS" stuff was removed by Greg KH, I believe, so
he  probably is the best to decide upon the correct way of
"fixing" it.

Ie, I am not sure whether his intentions were to slide in a
new patch on it later on to fix the problem with trying to
register with sysfs/udev twice...

Scott


> -----Original Message-----
> From: Kilau, Scott [mailto:[email protected]] 
> Sent: Wednesday, October 18, 2006 3:33 PM
> To: Chandler, Greg
> Cc: [email protected]
> Subject: RE: kernel oops with extended serial stuff turned on...
> 
> Hi Greg,
> 
> > kobject_add failed for ttyM0 with -EEXIST, don't try to register
> things
> > with the same name in the same directory.
> > [<c01f4fe2>] kobject_add+0xd2/0xe0
> > [<c02a4e8f>] class_device_add+0x9f/0x2a0 [<c02a5117>] 
> > class_device_create+0x77/0x90 [<c02423ff>] 
> > tty_register_device+0x5f/0x70 [<c02a5c9c>] kobj_map+0xec/0x100 
> > [<c015493d>] cdev_add+0x1d/0x30 [<c02426ea>] 
> > tty_register_driver+0x19a/0x1b0 [<c0272e4c>] 
> > isicom_register_tty_driver+0xac/0xd0
> 
> 
> I saw this same warning/problem in my out-of-tree drivers when the
> "TTY_DRIVER_NO_DEVFS" flag went away somewhere between 2.6.17 and
> 2.6.18.
> 
> You need to change this line:
> 
> isicom_normal->flags                    = TTY_DRIVER_REAL_RAW;
> 
> To:
> 
> isicom_normal->flags                    = TTY_DRIVER_REAL_RAW |
> TTY_DRIVER_DYNAMIC_DEV;
> 
> In the "drivers/char/isicom.c" file.
> 
> Scott
> 
> 
> 
> 
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux