LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-06-2012, 01:54 AM   #1
noamraph
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
usbhid driver prevents the useful driver from being loaded


Hello,

I'm using a controller which has both an rs-232 port and a USB port. Currently I'm using an external rs-232 to usb converter, but I'd like to use the built-in USB port. From the Windows driver I can deduce that the controller is using a cypress rs-232 to usb converter, but they have changed its vendorId and prodId.

Is it possible for me to tell linux to use the cypress_m8 driver for that device without recompiling the driver? Or if I do need to recompile the driver, can you give me some tips on how to do this, because I'm not very familiar with compiling drivers?

(I'm using ubuntu 11.10, linux 3.0.0)

Thank you very much,
Noam

Last edited by noamraph; 06-07-2012 at 04:53 PM. Reason: Now I have a different problem: the usbhid driver is loaded instead of the cypress_m8 driver.
 
Old 06-07-2012, 04:51 PM   #2
noamraph
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Update: I modified cypress_m8.{h,c} to include the vendor and product ids of the device, compiled it and run depmod -a.

Now, if I just plug the device I get the same behavior as previously was. However, if I run "rmmod usbhid" and plug the device, it now works! The problem, as I understand, is that the device is also a USB HID device, and the kernel gives it priority over the cypreess_m8 driver.

Do you have any suggestion on how to make it work without removing the usbhid driver (so I could simply plug it in)?

Thanks,
Noam
 
Old 06-13-2012, 02:46 AM   #3
noamraph
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I asked this question on the usb-linux mailing list, and Alan Stern provided the solution: add an entry to the hid_ignore_list array in drivers/hid/hid-core.c

See http://permalink.gmane.org/gmane.lin....general/65613
 
  


Reply



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
Standard Dual Channel PCI IDE Controller driver for FPGA controller weshutchins Linux - Kernel 1 07-11-2012 07:15 AM
usb block driver and SCSI aommands for host controller archanac07 Linux - Software 1 03-07-2010 11:42 PM
Linux USB Host Controller Driver Writing/debugging rvckumar Linux - Newbie 0 05-05-2009 02:48 AM
Linux USB Host controller driver cmrnaidu Linux - Software 4 12-18-2008 12:09 AM
USB 2.0 enhanced host controller driver satimis General 1 10-07-2006 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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