linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wait_for_sysfs problem
@ 2005-01-04  8:23 shyam
  2005-01-04 15:38 ` Kay Sievers
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: shyam @ 2005-01-04  8:23 UTC (permalink / raw)
  To: linux-hotplug

Hi,
This is my first port to the group. I have an exar modem Card for which 
I am supporting  the  driver for 2.6.x kernel. The driver which I use 
works fine with kernel 2.6.5 ( fedora core 2 ) distribution but does not 
work with kernel 2.6.9( fedora core 3 which I understand incorporates 
the udev feature.


Also I observe that the device which is in the pci slot has a symbolic 
link to the "serial" driver which is in /sys/bus/pci/drivers/serial.
So i am concerned that this serial driver gets installed and registers 
with the device before my driver. Can i write a udev rule such that my 
driver gets loaded and gets the symbolic link to the device in the 
/sys/bus/pci/driver/<driver name>/ directory.

Now during the registration of the driver I get the following 
/var/log/message .

wait_for_sysfs[3794]: either wait_for_sysfs (udev039) needs an update to 
handle the device '/class/tty/cum25' properly ( class specific file 
unavailable) as the sysfs-support of your device driver needs to be 
fixed, please report to <linux-hotplug-devel@lists.sourceforge.net>.



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wait_for_sysfs problem
  2005-01-04  8:23 wait_for_sysfs problem shyam
@ 2005-01-04 15:38 ` Kay Sievers
  2005-01-05  9:18 ` shyam
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Kay Sievers @ 2005-01-04 15:38 UTC (permalink / raw)
  To: linux-hotplug

On Tue, 2005-01-04 at 13:41 +0530, shyam wrote:
> This is my first port to the group. I have an exar modem Card for which 
> I am supporting  the  driver for 2.6.x kernel. The driver which I use 
> works fine with kernel 2.6.5 ( fedora core 2 ) distribution but does not 
> work with kernel 2.6.9( fedora core 3 which I understand incorporates 
> the udev feature.

> Now during the registration of the driver I get the following 
> /var/log/message .
> 
> wait_for_sysfs[3794]: either wait_for_sysfs (udev039) needs an update to 
> handle the device '/class/tty/cum25' properly ( class specific file 
> unavailable) as the sysfs-support of your device driver needs to be 
> fixed, please report to <linux-hotplug-devel@lists.sourceforge.net>.

Does your driver use the class driver core? Do you create a "dev" file
in /sys in the class directory?

Kay



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wait_for_sysfs problem
  2005-01-04  8:23 wait_for_sysfs problem shyam
  2005-01-04 15:38 ` Kay Sievers
@ 2005-01-05  9:18 ` shyam
  2005-01-05 20:55 ` Kay Sievers
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: shyam @ 2005-01-05  9:18 UTC (permalink / raw)
  To: linux-hotplug

Thanks Kay,
It would be nice if anybody could tell me how to create a "dev" file in 
my /sys directory. I do create the nodes in the /dev directory.   I find 
some ttyMU{0-31}  files in /sys/class/tty directory. They do have the 
same major number and minor number that I give in my make file but that 
is not the name that I give in the makefile. For example I give ttyMU1{a 
-h} in my make file  which I update in the /dev directory.
thanks once again,
shyam
Kay Sievers wrote:

>On Wed, 2005-01-05 at 10:03 +0530, shyam wrote:
>  
>
>>Hi Kay,
>>I don't create a "dev" file in my /sys directory. How is that going to 
>>help. Please give me some pointers on that.
>>    
>>
>
>It is needed for udev to read the major/minor to be able to create the
>device node. Just look at any of the other class device drivers in the
>kernel.
>
>If you need further information, please reply to the list on the
>original thread. Answers may be helpful for/from others too.
>
>Good luck,
>Kay
>
>
>  
>



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wait_for_sysfs problem
  2005-01-04  8:23 wait_for_sysfs problem shyam
  2005-01-04 15:38 ` Kay Sievers
  2005-01-05  9:18 ` shyam
@ 2005-01-05 20:55 ` Kay Sievers
  2005-01-06 14:12 ` shyam
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Kay Sievers @ 2005-01-05 20:55 UTC (permalink / raw)
  To: linux-hotplug

On Wed, 2005-01-05 at 14:36 +0530, shyam wrote:
> It would be nice if anybody could tell me how to create a "dev" file in 
> my /sys directory.

You may look at:
  drivers/base/class_simple.c

how a simple version of class device is doing it, which is needed for
udev to create the /dev node automatically for you. If you don't need to
roll you own class registration, you may even just use the class_simple
and it will do it for you.

> I do create the nodes in the /dev directory.   I find 
> some ttyMU{0-31}  files in /sys/class/tty directory. They do have the 
> same major number and minor number that I give in my make file but that 
> is not the name that I give in the makefile. For example I give ttyMU1{a 
> -h} in my make file  which I update in the /dev directory.

Hard to guess, is the driver publicly available somewhere?

Kay



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wait_for_sysfs problem
  2005-01-04  8:23 wait_for_sysfs problem shyam
                   ` (2 preceding siblings ...)
  2005-01-05 20:55 ` Kay Sievers
@ 2005-01-06 14:12 ` shyam
  2005-01-06 15:37 ` shyam
  2005-01-06 20:55 ` Kay Sievers
  5 siblings, 0 replies; 7+ messages in thread
From: shyam @ 2005-01-06 14:12 UTC (permalink / raw)
  To: linux-hotplug

I used the class_simple file to create a "dev" file in the /sys and I 
used the following functions
1)class_simple_create
2)class_simple_device_add
3)class_simple_device_remove.
Following are my observations-
a)I find my "dev" i.e. "modem" being created in /sys/class but the 
directory is empty. Is it that I need to make nodes inside this directory?
b)Now should I make the nodes using mknod ?

While compiling the driver I *again* encountered the following message.

wait_for_sysfs[8956]: either wait_for_sysfs (udev 039) needs an update 
to handle the device '/class/tty/cum8' properly (class specific file 
unavailable) or the sysfs-support of your device's driver needs to be 
fixed, please report to <linux-hotplug-devel@lists.sourceforge.net>


Kay Sievers wrote:

>On Wed, 2005-01-05 at 14:36 +0530, shyam wrote:
>  
>
>>It would be nice if anybody could tell me how to create a "dev" file in 
>>my /sys directory.
>>    
>>
>
>You may look at:
>  drivers/base/class_simple.c
>
>how a simple version of class device is doing it, which is needed for
>udev to create the /dev node automatically for you. If you don't need to
>roll you own class registration, you may even just use the class_simple
>and it will do it for you.
>
>  
>
>>I do create the nodes in the /dev directory.   I find 
>>some ttyMU{0-31}  files in /sys/class/tty directory. They do have the 
>>same major number and minor number that I give in my make file but that 
>>is not the name that I give in the makefile. For example I give ttyMU1{a 
>>-h} in my make file  which I update in the /dev directory.
>>    
>>
>
>Hard to guess, is the driver publicly available somewhere?
>
>Kay
>
>
>
>-------------------------------------------------------
>The SF.Net email is sponsored by: Beat the post-holiday blues
>Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
>It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
>_______________________________________________
>Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
>Linux-hotplug-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
>
>  
>



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wait_for_sysfs problem
  2005-01-04  8:23 wait_for_sysfs problem shyam
                   ` (3 preceding siblings ...)
  2005-01-06 14:12 ` shyam
@ 2005-01-06 15:37 ` shyam
  2005-01-06 20:55 ` Kay Sievers
  5 siblings, 0 replies; 7+ messages in thread
From: shyam @ 2005-01-06 15:37 UTC (permalink / raw)
  To: linux-hotplug

Hi,
I forgot to mention that I use minicom to open my device which is 
configured in such a way that the node to be opened is in the /dev of 
the filesystem. Is that  problem?
Thanks,
Shyam

Kay Sievers wrote:

>On Wed, 2005-01-05 at 14:36 +0530, shyam wrote:
>  
>
>>It would be nice if anybody could tell me how to create a "dev" file in 
>>my /sys directory.
>>    
>>
>
>You may look at:
>  drivers/base/class_simple.c
>
>how a simple version of class device is doing it, which is needed for
>udev to create the /dev node automatically for you. If you don't need to
>roll you own class registration, you may even just use the class_simple
>and it will do it for you.
>
>  
>
>>I do create the nodes in the /dev directory.   I find 
>>some ttyMU{0-31}  files in /sys/class/tty directory. They do have the 
>>same major number and minor number that I give in my make file but that 
>>is not the name that I give in the makefile. For example I give ttyMU1{a 
>>-h} in my make file  which I update in the /dev directory.
>>    
>>
>
>Hard to guess, is the driver publicly available somewhere?
>
>Kay
>
>  
>



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: wait_for_sysfs problem
  2005-01-04  8:23 wait_for_sysfs problem shyam
                   ` (4 preceding siblings ...)
  2005-01-06 15:37 ` shyam
@ 2005-01-06 20:55 ` Kay Sievers
  5 siblings, 0 replies; 7+ messages in thread
From: Kay Sievers @ 2005-01-06 20:55 UTC (permalink / raw)
  To: linux-hotplug

On Thu, 2005-01-06 at 19:30 +0530, shyam wrote:
> I used the class_simple file to create a "dev" file in the /sys and I 
> used the following functions
> 1)class_simple_create
> 2)class_simple_device_add
> 3)class_simple_device_remove.
> Following are my observations-
> a)I find my "dev" i.e. "modem" being created in /sys/class but the 
> directory is empty. Is it that I need to make nodes inside this directory?
> b)Now should I make the nodes using mknod ?

I have no idea what's going on here. Is there a public place where we
can get the driver to look at the sources?

Kay



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-06 20:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-04  8:23 wait_for_sysfs problem shyam
2005-01-04 15:38 ` Kay Sievers
2005-01-05  9:18 ` shyam
2005-01-05 20:55 ` Kay Sievers
2005-01-06 14:12 ` shyam
2005-01-06 15:37 ` shyam
2005-01-06 20:55 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).