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. 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. 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. > 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 <[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. 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]. Footnotes: [1] http://lwn.net/Articles/565724/ [2] https://github.com/kopasiak/gt [3] https://wiki.tizen.org/wiki/USB -- BR's Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics [email protected] _______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
