kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Sohaib Mhmd <xunilams@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: USB driver
Date: Sat, 25 Apr 2020 07:44:12 +0200	[thread overview]
Message-ID: <CAL06vpE_0-uTQpzaB64s1dzNQV8NPQS_UKbu--dP0Zm_1gWWiw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1233 bytes --]

Hi everyone, I made a very simple USB driver
<https://gist.github.com/smalinux/3d6a5b000a32b97250b2d0c86b90711b>,
but the problem is that the probe and disconnect functions never was called.
I tried to google for this problem but unfortunately:
1- I don't use usb-storage <https://stackoverflow.com/a/31071943/5688267>,
it's a keyboard! (but anyway the same problem exists with any usb-based
device) and all driver on my machine are  bluetooth related drive (i
think!) (as you see from lsmod | grep usb)
2- I tried to rmmod usbhid <https://stackoverflow.com/a/4204608/5688267>
but I get error: ERROR: Module usbhid is builtin.
I tried to search for "usbhid" in .config file to remove it but I didn't
find anything.

What should I do?
thanks, smalinux

[root@hp kernel_mod]# lsmod | grep usb
sma_usb                16384  0
btusb                  57344  0
btrtl                  24576  1 btusb
btbcm                  20480  1 btusb
btintel                32768  1 btusb
bluetooth             634880  34 btrtl,btintel,btbcm,bnep,ath3k,btusb,rfcomm

I use  :
- Linux hp 5.6.3 #2 SMP Fri Apr 10 06:45:27 EET 2020 x86_64 x86_64 x86_64
GNU/Linux
- Linux buildroot 5.4.3-gf7688b48a-dirty #1 SMP Thu Jan 1 00:00:00 UTC 1970
x86_64 GNU/Linux

[-- Attachment #1.2: Type: text/html, Size: 1460 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

             reply	other threads:[~2020-04-25  5:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-25  5:44 Sohaib Mhmd [this message]
2020-04-25  7:00 ` USB driver Greg KH
2020-04-25  7:45   ` Sohaib Mhmd
2020-04-25  8:05     ` Greg KH
2020-04-29  0:25 ` Aruna Hewapathirane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL06vpE_0-uTQpzaB64s1dzNQV8NPQS_UKbu--dP0Zm_1gWWiw@mail.gmail.com \
    --to=xunilams@gmail.com \
    --cc=kernelnewbies@kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).