LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   USB driver won't call probe function (https://www.linuxquestions.org/questions/linux-kernel-70/usb-driver-won%27t-call-probe-function-518838/)

linux=future 01-12-2007 10:46 PM

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.

linux=future 01-13-2007 11:27 AM

Ha! I had to remove usbhid too. Now it probes, although it doesn't work yet...

linux=future 01-13-2007 04:47 PM

...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?


All times are GMT -5. The time now is 06:43 PM.