Re: disable ldusb

"Xiaofan Chen" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On 10/28/07, Andres Aguirre <[email protected]> wrote:
> Hi, i am writing a kernel module to control a microchip pic18F4550
> microcontroller based on the great example of Greg Kroah-Hartman
> (usb-skeleton). I have the problem that wirh the kernel version
> 2.6.22.5-31 the module ldusb is automatic loaded when I connect the
> device to the usb port causing that my module dont work properly. The
> solution that i found is to remove   ldusb (rmmod) every time I
> connect my device, what is very tedious. anyone knows how to
> permanently remove ldusb?

Firstly I believe the ldusb module only include one particular
VID/PID combination (04d8000c) for the Microchip PICDEM FS
USB Demo Board's Demo Mode using interrupt transfer. You should
use another VID/PID combination. You can apply one for free from
Microchip.

I also think the ldusb is not necessary for the PICDEM FS USB
demo mode because there is a libusb based application to support
it. However the original submitter would like to keep it and it is easy
for me to patch the libusb application to detach the kernel driver.
Therefore I think it is no harm to keep it in the kernel.

I've published the modification in the following Microchip Forum
thread and it is working.
http://forum.microchip.com/tm.aspx?m=106426

Xiaofan
http://mcuee.blogspot.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.