Re: [RFCv4 PATCH 13/13] usb: gadget: ufg: add Mass Storage Gadget adapter to UFG

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

 



* Andrzej Pietrasiewicz | 2012-11-22 13:07:07 [+0100]:

>This is an example of how to create an adapter module for an old-style gadget.
>It provides the legacy interface while internally operates on configfs.
>
>Usage is like g_mass_storage.ko, but instead the user needs to do e.g.:
>
>insmod libcomposite.ko
>
>insmod f_mass_storage.ko (not required if request_module works)
>insmod g_usb_functions.ko (not required if request_module works)
>
>insmod g_mass_storage_adapter.ko removable=1
>
>Then the user can do something on the lines of:
>
>echo <some file>.img > /sys/devices/platform/s3c-hsotg/gadget/lun0/file
>
>and they can enjoy the mass storage gadget functionality.
>

Yes. I had something like that in mind in order to get rid of the old
gadgets while keeping backwarts compatibility with the old "modprobe
gadget param=val" interface. Good.

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