LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-12-2007, 10:46 PM   #1
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Rep: Reputation: 30
USB driver won't call probe function


Forgive me if I'm shaky on this, this is the first time that I've tried to write a driver.

I am trying to write a driver for the Trio Linker Plus, which allows one to use a gamecube controller like a joystick. The driver is supposed to emulate the controller as a mouse. The problem is that whenever I plug the device in, joydev always gets loaded and takes over, so the driver's probe function is never called.

If I manually shut off joydev via rmmod, the probe function of my driver is still never called.

Last edited by linux=future; 01-12-2007 at 11:04 PM.
 
Old 01-13-2007, 11:27 AM   #2
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Original Poster
Rep: Reputation: 30
Ha! I had to remove usbhid too. Now it probes, although it doesn't work yet...
 
Old 01-13-2007, 04:47 PM   #3
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Original Poster
Rep: Reputation: 30
...and now it works. However, usbhid still interferes with it. I always need to shut off usbhid in order to load my driver, which won't be an option for any person that has a usb keyboard (as I did a few hours ago...)

Is there a way to give my driver priority over usbhid and joydev? Or perhaps tell joydev to not connect the trio linker plus?
 
  


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
How to call function in kernel vishalbutte Programming 10 02-07-2006 02:50 AM
USB Driver Probe function not being called xtom Fedora 0 10-28-2005 03:48 PM
How to call another function from a function? geminigal Programming 4 04-21-2005 10:41 PM
No Matching Function for Call ! vipinsharma Programming 2 07-05-2004 01:58 PM
how to call function?? harpal Programming 3 04-29-2003 05:59 AM


All times are GMT -5. The time now is 01:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration