LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-31-2008, 05:51 AM   #1
lqrk
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
USB gadget API framework with gadgetfs


I am using the USB gadget API framework with gadgetfs together with the example \
usermode driver usb.c. My target platform is an \
i.MX31 ARM11 with a arc_udc controller driver. The example usermode driver was \
modified to be started as a thread, it is NOT the original standalone driver. The \
normal execution of the usermode driver works fine, but for us it is necessary to \
terminate and restart usb-endpoint-pthreads (source, sink, ep0) because we need to \
disconnect USB during application runtime. In some cases arc_udc isn't able to unload \
gadgetfs("Device or resource busy"). The sticking point from my point of view is \
terminating endpoint0. Has anyone got similar constellation/problems/experience?
Can someone point me in the right direction to avoid the "Device or resource busy" \
error? Is there a way of querying the state (busy/free) of the gadgetfs from \
usermode?

Thanks in advance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount userspace directory as "/dev" block device for USB Gadget API? Robert_A Programming 5 02-17-2011 02:26 AM
MTP gadget driver Robert_A Programming 7 01-14-2010 02:51 PM
Linux API to find out the number of USB disks connected to the machine and the files poomas Linux - Newbie 2 04-29-2008 09:04 AM
LXer: What This Gadget Can Do Is Up to You LXer Syndicated Linux News 0 01-07-2008 12:00 PM
Scientific Gadget Junkies - Playstation II thomassounness General 4 11-22-2003 08:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration