Re: [PATCH RESEND] FunctionFS: enable multiple functions

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

 



On Monday, February 06, 2012 9:46 PM Michał Nazarewicz wrote:
Come to think of it, functionfs could simply accept any number of functions and
ignore their names all together.  Ie. The “functions” parameter could be dropped
and functionfs could stop caring about mount device names.

This, I think, would simplify the code a little.

On Tue, 07 Feb 2012 07:35:07 +0100, Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> wrote:
This will complicate things in userspace a lot. The final configuration of the
gadget depends on the racy order of starting functionfs daemons in userspace,
what is usually done in the background from some kind of system init scripts.

Also please notice that the Windows drivers expect very specific order of usb
interfaces in the usb device and will not work if the functions has been registered
in the different order.

Some usb functions might also work incorrectly if they are restarted a few times
just because the other functions get registered (gadget need to reregister to notice
the host that a new function is available).

I think that the current solution with names makes it both clean and reliable.
Sometimes too much automation makes things much harder.

Fair enough.

--
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +----<email/xmpp: mpn@xxxxxxxxxx>--------------ooO--(_)--Ooo--
--
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