Newbie interested in using usbfs2.

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

 



Hello,

I am very new to Linux Kernel framework.

All I did is an adaptation of an existing driver (LegoTower) for my
specific application it was working well until I had to add an other
communication endpoints pair.

I am now dealing with the problem of accessing to two endpoints with
the same driver.

I found several tricks :
 > using IOCtrl but I still have the problem of multi threaded access,
 > then I thought to adding a "trick" like : first byte of writing
indicates which endpoint shall be written and the read data the first
byte is indicating where the data comes from but the I feel it is not
the good way to do.

Then I thought multiple dev could be the solution, I browsed the usb
kernel driver sources but it seems that the rule is one dev per device
driver.

So I start working on Linux-usb mailing list archives. Then I found
evocation of usbfs2 which seems to be exactly what I need.

I looked for documentation, I saw the vid of Sarah presentation (very
impressive) and started to get her sources from her git.
I am not a specialist of Git either but basically what I got is an
image of Kernel Src. Browsing exchange about "multiple devices for one
Usb interface" topic in archives, I noticed an email from Sarah which
mentionned her code was in the file : "drivers/usb/core/endpoint_
fops.c"
But I don't have it in the files I cloned from sarah git.

So my question is simple, is there an HOW TO use usbfs2 ?
Is there a documentation about usbfs2  which explains how it's work
and what shall be done to make it acceptable to the main kernel tree.

As I told, I am not a Linux expert ( I am coming from very low
embedded application on µcontrollers ) but I have to make it works so
my idea is that with some help and "guide lines" from the expert you
have, it could be a good way to start to give back to those who gave
(and are giving) us so much (Open Source Community).

Sorry for being so long and my poor english.

I will go on searching by myself but help would be really appreciated.

Take Care.

Sylvain PORTES.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux