Re: [RFC v2] usb/gadget: the start of the configfs interface

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

 



On 11/30/2012 07:39 PM, Michal Nazarewicz wrote:
On Fri, Nov 30 2012, Sebastian Andrzej Siewior wrote:
That won't work. You can only symlink an instance to one UDC. It is an
instance after all. If you want two ACM ports you need two ACM folder
in  your functions folder:

acm.ttyS0
acm.ttyS1

Yeah, but what Felipe just made me realise is that if that's the case,
than it makes no sense to have the functions directory outside of the
gadget.  Instead we should have something like:

Yes. Except if we want to move functions from one udc to another.
Doesn't this look useful? Are sure we won't to disallow this?

Within /sys/kerne/config/usb_gadget:
   udcs/dummy.0/gadget ->  ../../gadgets/blah
   udcs/dummy.1/gadcet ->  ../../gadgets/foo

   gadgets/blah/functions/acm.0
   gadgets/blah/functions/mass-storage.0
   gadgets/blah/configs/0/functions/0 ->  ../../../function/acm.0
   gadgets/blah/configs/0/functions/1 ->  ../../../function/mass-storage.0
   gadgets/blah/configs/1/functions/0 ->  ../../../function/acm.0
   gadgets/blah/configs/2/functions/0 ->  ../../../function/mass-storage.0
   gadgets/blah/udc ->  ../../udcs/dummy.0

   gadgets/foo/functions/ether.0
   gadgets/foo/functions/mass-storage.0
   gadgets/foo/configs/0/functions/0 ->  ../../../function/ether.0
   gadgets/foo/configs/0/functions/1 ->  ../../../function/mass-storage.0
   gadgets/foo/configs/1/functions/0 ->  ../../../function/ether.0
   gadgets/foo/configs/2/functions/0 ->  ../../../function/mass-storage.0
   gadgets/foo/udc ->  ../../udcs/dummy.0

blah and foo are arbitrary. Same goes for numbers after the dot in
function names.


Sebastian
--
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