senthil 0 Posted September 11, 2007 Share Posted September 11, 2007 Hi , I have modified the usb-skeleton.c to work for my first usb device driver. I have just modified the #define USB_SKEL_VENDOR_ID #define USB_SKEL_PRODUCT_ID in usb-skeleton.c according to my need. when I give insmod init function gets called and when i give rmmod exit function gets called correctly. When i insert my device probe hardly get called. Do i need to add anyother thing in driver code to detect my deive. Looking for all your help T.Senthil Quote Link to post Share on other sites
anyweb 490 Posted September 12, 2007 Share Posted September 12, 2007 what distro is this and what device is it ? Quote Link to post Share on other sites
znx 24 Posted September 12, 2007 Share Posted September 12, 2007 Do i need to add anyother thing in driver code to detect my deive. Looking for all your help Yeah, you need to find the h/w yourself. You will need to work out how to detect the I/O port and IRQ, either doing it automatically or providing a way to do it manually. Linux Journal has some good stuff: http://www.linuxjournal.com/article/7353 http://www.linuxjournal.com/article/4786 http://www.linuxjournal.com/article/2476 - more generic stuff http://www.linuxjournal.com/article/1219 - more general again http://www.linuxjournal.com/article/1220 - Possibly the best one, discussing Device Discovery. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.