LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2014, 05:57 AM   #1
ranji
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Rep: Reputation: 0
gadgetfs hangs


Hi,

I am using gadgetfs driver with linux 2.6.22.18 kernel for my device. After some repeated communication with PC,gadgetfs hangs.I can see that i am receiving the hardware interrupts in the ISR for the incoming USB packets. But gadgetfs is still in a hang state. Has anyone come across this issue?

Any help in this regard is very much appreciated.

Regards,
Ranji

Last edited by ranji; 05-15-2014 at 09:28 AM.
 
Old 05-16-2014, 05:04 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
Hey Ranji,
is this happening on boot up?
if so, could you run a

Code:
sudo dmesg | grep -i -C 3 gadgetfs
sudo lsmod | grep -i gadgetfs #<- or whatever kernel mod you loaded for gadgetfs
and post the output.

If it is hanging when you hotplug it, you'll probably have to tell us a little more about the distro your running and if you could run an lsusb when it's in, that might be valuable as well
 
Old 05-16-2014, 05:24 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
What Os is still running 2.6.22 kernel? Is it still supported?
 
Old 05-26-2014, 02:49 AM   #4
ranji
LQ Newbie
 
Registered: Oct 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Hi dijetlo,

Thanks for your reply.
>>is this happening on boot up?
No. It happens during repeated communication with host pc. However please see the output for the commands mentioned above.

-sh-3.2# dmesg | grep -i -C 3 gadgetfs
USB Init: Wait for RESET completed
USB Init: RESET completed
device_init: pDev=0xdf28e400, pXD(32)=0xdf28e000, pSCRATCH(32)=0xdf203400, pTemp XD=0xdef17ee0
gadgetfs: USB Gadget filesystem, version 24 Aug 2004
bind to driver nop --> -120
xpcie: Open: module opened
PM: Writing back config space on device 0000:00:01.0 at offset f (was 1ff, writi ng 109)
PM: Writing back config space on device 0000:00:01.0 at offset 4 (was 0, writing e8000000)
PM: Writing back config space on device 0000:00:01.0 at offset 3 (was 0, writing 8)
PM: Writing back config space on device 0000:00:01.0 at offset 1 (was 100000, wr iting 100107)
gadgetfs: bound to mv_udc driver
registered Marvell USB-0 gadget driver gadgetfs
gadgetfs: suspended from state 2
Inside gadgetfs_setup
gadgetfs: connected
gadgetfs: disconnected
Inside gadgetfs_setup
gadgetfs: connected
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
gadgetfs: configuration #3
xpcie: Release: module released
xpcie: Open: module opened
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
Inside gadgetfs_setup
xpcie: Release: module released
xpcie: Open: module opened
xpcie: Release: module released
gadgetfs: disconnected
unregistered Marvell USB 0 gadget driver gadgetfs


-sh-3.2# lsmod | grep -i gadgetfs
gadgetfs 19248 1
mv_udc 43560 1 gadgetfs

Thanks,
Ranji
 
Old 05-26-2014, 04:45 AM   #5
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
Hey Ranji,

Good to hear from you again.

Quote:
xpcie: Release: module released
xpcie: Open: module opened
OK, if xpcie adapter sees it and the kernels loaded....
Quote:
It happens during repeated communication with host pc.
Try swapping out the USB wire. Since the next step is looking at your system logs and trying to suss the problem out that way, it's time to tell us what distro you're running.

@Ed
Quote:
What Os is still running 2.6.22 kernel?
You know, I thought the same thing, but...
Quote:
The API and several supporting drivers are included in current 2.4 and 2.6 Linux kernels,
It's seems righteous. Not to mention he got the modules loaded...
 
  


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
Gadgetfs with usb.c example on ARM Board not passing USB2 Command Verifier Tests tzippy Linux - Embedded & Single-board computer 0 01-08-2014 12:44 PM
usb.c user mode driver gadgetfs dmesg error code clsimmons@emtek.us Linux - Embedded & Single-board computer 2 02-11-2011 10:47 AM
USB gadgetfs: how to use interrupt endpoints BernardOfCA Linux - Software 0 12-01-2010 10:45 PM
Handling control out requests using gadgetfs API abhiruchid Linux - Newbie 0 05-21-2009 11:35 PM
USB gadget API framework with gadgetfs lqrk Programming 0 10-31-2008 06:51 AM


All times are GMT -5. The time now is 06:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration