On Wed, Nov 20, 2013 at 03:43:54PM +0100, Krzysztof Opasiak wrote: > Hi, > > > -----Original Message----- > > From: [email protected] [mailto:dev- > > [email protected]] On Behalf Of Yang Chengwei > > Sent: Wednesday, November 20, 2013 1:50 PM > > To: Taeyoung Kim > > Cc: Krogerus, Heikki; Stoppa, Igor; [email protected] > > Subject: [Dev] usb-manager: set correct usb gadget attributes > > > > Hi List, > > > > I found that usb-manager does some hard codes to setup usb gadget > > attributes like below > > > > --------------------8<--------------------------------------------- > > --------- > > #ifndef SIMULATOR > > ret = driver_1_1_kernel_node_set("04e8", "6860", > > "mtp", "mtp,acm", > > "239", "2", "1", NULL); #else > > ret = driver_1_1_kernel_node_set("04e8", "6860", > > "mtp", > > "mtp,acm,sdb", "239", "2", "1", NULL); #endif > > ------------------------8<----------------------------------------- > > --------- > > > > So all the Tizen devices will emulates as a Samsung Galaxy S II, > > recognized by 'lsusb' on Linux Host. > > > > It looks quite strange especially I have Intel devices. :-) > > > > Do you have any plan to change such hard codes to system-info API > > or any other non-hard-code way? > > We (SRPOL) are working with all issues related to USB.
Great to know that there is a USB team for Tizen. > > I know that USB manager don't look as it should, but there is no point > in rewriting it using the old gadget. As you can see there is a ConfigFS > present in Kernel at Tizen.org. ConfigFS is a virtual file system for > setting up gadgets which, I hope, will replace the old gadgets modules > in Linux. I see you're activately moving forward. > > Some time ago Matt Porter introduced a libusbg[1] which is a C API for > ConfigFS. Currently we are working under development of this library and > under command line tool called gt[2]. When the library will be ready we > will rewrite usb manager functionality related to usb gadgets with usage > of that library. Do you plan it for Tizen 3.0? > > > > We (Intel developers) currently has some discussion about if the > > gadget iSerial attribute can also handle in user space like this > > way. > > > > So far, iSerial setup in kernel gadget driver I found. How do you > > think? > > > > Moreover, there is a FunctionFS in Kernel. We prepare to rewrite SDB to > use it instead of specialized Kernel driver. Aleksander Zdyb Yes, I see you're trying to register all usb gadget functions to configfs[1]. > <[email protected]> is responsible for this task. The goal > which we would like to achieve is to eliminate our specific drivers and > have only the parts of Kernel which are in mainline. This will be very > beneficial for us and allow to easier Kernel upgrade. I see sdb was forked from adb? With a little changes, name, sub protocol and etc. Is it possible to mainline both adb and sdb? > > For more information about USB issues don't hesitate to contact me or > Stanislaw Wadas<[email protected]>. If you have some plans related to > USB please also introduce them on the list and wiki [3]. Thank you for these useful links. Reference: [1] http://events.linuxfoundation.org/sites/events/files/slides/LinuxConNA2013-andrzej.pietrasiewicz-usb-gadget-configfs_0.pdf -- Thanks, Chengwei
signature.asc
Description: Digital signature
_______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
