From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 847ECC55185 for ; Sat, 25 Apr 2020 05:47:36 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 513A620704 for ; Sat, 25 Apr 2020 05:47:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GKAorgsP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 513A620704 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jSDf3-0004T9-PL for kernelnewbies@archiver.kernel.org; Sat, 25 Apr 2020 01:47:33 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1jSDd1-0002Jz-Um for kernelnewbies@kernelnewbies.org; Sat, 25 Apr 2020 01:45:28 -0400 Received: by mail-lf1-x12b.google.com with SMTP id j14so9483920lfg.9 for ; Fri, 24 Apr 2020 22:45:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YVNLLq7a8DhaKYT/naBADDj4RcVjYqTqByzbl/PTWIg=; b=GKAorgsPIdNT9lstI9bTRtvuB3LB4LYakGBpWEn8ASbEUN62reSoBkrhvASvc5G8Cb mTjheuNatJmyDdAhKtKbBbiCTgqrSzfOvUB/CF5ZkZ1rgH4KyGoJrS0c8nC+uEfLhzT0 YV9RvohDIesXyf8dxQb0CfwD+34uG0bYLz0coj7r82ocGmOzTZRLuyaRlD2aLWQiZSvi QnViS6OZTP+9tIWFgmtOJTbi1RvHWCpf30t+W9lU8wftDQxUj1sRzb0Vs1RIkOU16jcZ e94D4EfUdqALtF2H1q/+65CuLjAZ4RtMSu6IfsVJBSfgqbfKDycwmTyjOIWx66lFoG63 iOKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YVNLLq7a8DhaKYT/naBADDj4RcVjYqTqByzbl/PTWIg=; b=rfPJto7Z1Onc4ZSVHeT25g6UPHRG5vOJmSlqabogXWlb6HmofXmoa1j9Ap/lUKPaoL +1j/VgYsVtLIhl2zI5Ao8/uWbqiuAajyZUO1aT9il4cXptmehPDiCF5uN8AMh8POsqrx LiUpgKvfp6Hxw8gWK6PMYH8Z2yIank0ztm6OONf4SkekWHBYWmEGR4JgVMVTW/NP1flV XjYJHsutIYMBpwrJjAVkk/kleNLHeJOxcIEPA4kvylmg7NBBE8MYENMUvuaLLyDVPkSl rw3+V94FBAUM5QLaReD1FYIbS8oJ6g4ufkd6iLJbwRwVQywUQV5X0uxQW2khkxM8eqYU NoZw== X-Gm-Message-State: AGi0Pubq4+8T2L5yz4zQYc91gDpzD1a+DgD2mMdMQIN72ts64CFA7/n0 HWZUrObXDBI8cyBELS6mrllVa5oskvmA8m1je23fG8j9 X-Google-Smtp-Source: APiQypKqRMznmTPuHMf1F/FJxk8jonyTY6x07pfxOkQtaKRqebB0p7ngpO3XjJgl+bRDiWd8IvSCJPEjzXV4iY49Xec= X-Received: by 2002:a19:7004:: with SMTP id h4mr8749870lfc.166.1587793463212; Fri, 24 Apr 2020 22:44:23 -0700 (PDT) MIME-Version: 1.0 From: Sohaib Mhmd Date: Sat, 25 Apr 2020 07:44:12 +0200 Message-ID: Subject: USB driver To: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1796014855430221739==" Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org --===============1796014855430221739== Content-Type: multipart/alternative; boundary="00000000000059fca705a416f97b" --00000000000059fca705a416f97b Content-Type: text/plain; charset="UTF-8" Hi everyone, I made a very simple USB driver , 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 , 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 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 --00000000000059fca705a416f97b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi everyone, I made a very simple USB driver,
bu= t the problem is that the probe and=C2=A0disconnect functions never was cal= led.
I tried to google for this problem but unfortunately:
1- I don&#= 39;t use=C2=A0usb-= storage, it's a keyboard! (but anyway the same problem exists with = any usb-based device)=C2=A0and all driver on my machine are=C2=A0=C2=A0blue= tooth related drive (i think!) (as you see from lsmod | grep usb)
2- I t= ried to rmmod=C2=A0= usbhid but I get error:=C2=A0ERROR: Module usbhid is builtin.
I trie= d to search for "usbhid" in .config file to remove it but I didn&= #39;t find anything.

What=C2=A0should I do?
thanks, smalinux
<= br>[root@hp kernel_mod]# lsmod | grep usb
sma_usb =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A016384 =C2=A00
btusb =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A057344 =C2=A00
btrtl =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A024576 =C2=A01 btusb<= br>btbcm =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02048= 0 =C2=A01 btusb
btintel =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A032768 =C2=A01 btusb
bluetooth =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 634880 =C2=A034 btrtl,btintel,btbcm,bnep,ath3k,btusb,rfcomm

I= use=C2=A0 :
-=C2=A0Linux 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

--00000000000059fca705a416f97b-- --===============1796014855430221739== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============1796014855430221739==--