lkml.org 
[lkml]   [2006]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: kernel oops with extended serial stuff turned on...
Date
From
Hi Greg C,

> -----Original Message-----
> From: Greg.Chandler@wellsfargo.com
> [mailto:Greg.Chandler@wellsfargo.com]
> Sent: Wednesday, October 18, 2006 4:07 PM
> To: Kilau, Scott
> Cc: linux-kernel@vger.kernel.org
> 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:Scott_Kilau@digi.com]
> Sent: Wednesday, October 18, 2006 3:33 PM
> To: Chandler, Greg
> Cc: linux-kernel@vger.kernel.org
> 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 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/

\
 
 \ /
  Last update: 2006-10-18 23:19    [W:0.078 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site